[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: laying out widgets
From:       Pupeno <pupeno () kde ! org>
Date:       2003-06-23 21:27:24
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 23 June 2003 16:50, Kevin Krammer wrote:
> On Monday 23 June 2003 20:29, Pupeno wrote:
> > I created a widget for video playing and I'm having a problem with
> > sizing but I don't really know where the problem is.
> > Basically, what I want, is the video widget to take as much space as
> > posible, I did this in the constructor:
> > setSizePolicy(QSizePolicy(QSizePolicy::Expanding,
> > QSizePolicy::Expanding)); but it's not enough.
> > I have an application, where I have a QVBox, inside that, I have the
> > video playing widget and two QHBoxes (that contains buttons, line edit
> > and combo boxes). The problem is that each object in the QVBox gets one
>
> Hmm, check the SizePolicy of the QVBoxWidget or use a QVBoxLayout.
What should the SizePolicy of the QVBox be  ? I don't see why the SizePolicy 
of a QVBox would affect the widgets inside it.
I tried to use a QVBoxLayout but I couldn't. QVBoxLayout doesn't like being 
inside a QHBox. I need them inside a QHBox because I need more than one video 
playing set in the same window. Why a QHBox  ? because since it is a 
KMainWindow, there's already a layout and it complains if I creat another top 
level layout, so, I have to create a widget and set it as main widget.
Any idea ?

Thanks.

- -- 
Pupeno: pupeno@kde.org
http://www.kde.org
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+93C+Lr8z5XzmSDQRAoKkAJ46RStQyXledB4BY8+qc9VZEUgrkQCfT3hh
yawhMR/K5wjDnpTVYN1cFRg=
=xmmH
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic