[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KDoubleNumInput size policy
From: Michael Goffioul <goffioul () imec ! be>
Date: 2003-03-14 9:01:31
[Download RAW message or body]
> > KDoubleNumInput's on the right. I trying to make the KDoubleNUmInput
> > objects to take as much horizontal space as possible but it doesn't
> > work. For internal reasons, the KDoubleNumInput are constructed
> > independently (without knowing there's another one above or below).
>
> KNumInput supports labels itself. there is no reason to implement them
> separately.
But if you want to align labels and various widgets in a grid, you need
to separate the label and the widget. Label support in KNumInput is
OK as long as you only align KNumInput's.
> > Is there anything else I can try, except setting a column stretch
> > factor to 1 in my grid layout (i'd like to avoid that).
>
> No, no other way. same like any other widget.
Then I don't understand why after setting the size policy of the
KNumInput and the internal QSlider to (min-expanding, min), the
widget doesn't take the available space. The label on the right
has a size policy of (min, min).
Michael.
--
------------------------------------------------------------------
Michael Goffioul IMEC-DESICS-MIRA
e-mail: goffioul@imec.be (Mixed-Signal and RF Applications)
Tel: +32/16/28-8510 Kapeldreef, 75
Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM
------------------------------------------------------------------
>> 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