Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, December 2007
Dynamically adjusting widget size in layout


Message 1 in thread

Is there any widget that would allow dynamical adjusting of two widgets height 
in QVerticalLayout? I.e. if I grab such widget with mouse and move it one of 
my widgets becomes smaller and aother one is growing.

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.


Message 2 in thread

Vladimir Pouzanov wrote:
> Is there any widget that would allow dynamical adjusting of two widgets height 
> in QVerticalLayout? I.e. if I grab such widget with mouse and move it one of 
> my widgets becomes smaller and aother one is growing.
> 

QSplitter(Qt::Vertical) sounds like what you are looking for. Is there 
something more advanced that you need here?

--
 [ signature omitted ] 

Message 3 in thread

On Wednesday 19 December 2007 18:53:39 Rob Douglas wrote:
> QSplitter(Qt::Vertical) sounds like what you are looking for. Is there
> something more advanced that you need here?

It fits my needs perfectly. Is there any way to add it from designer or I have 
to re-create my GUI in plain code?

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.


Message 4 in thread

Farcaller wrote:
> On Wednesday 19 December 2007 18:53:39 Rob Douglas wrote:
> > QSplitter(Qt::Vertical) sounds like what you are looking for. Is
there 
> > something more advanced that you need here?
> 
> It fits my needs perfectly. Is there any way to add it from designer
or I have to re-create my > > GUI in plain code?

In designer, select the widgets you wish to place in the splitter, right
click and select Lay out->Lay out vertically in splitter.  Then you can
set the layout on your widget/dialog as needed.

--
 [ signature omitted ] 

Message 5 in thread

On onsdag den 19. December 2007, Bachrach, Robert L wrote:
> Farcaller wrote:
> > On Wednesday 19 December 2007 18:53:39 Rob Douglas wrote:
> > > QSplitter(Qt::Vertical) sounds like what you are looking for. Is
>
> there
>
> > > something more advanced that you need here?
> >
> > It fits my needs perfectly. Is there any way to add it from designer
>
> or I have to re-create my > > GUI in plain code?
>
> In designer, select the widgets you wish to place in the splitter, right
> click and select Lay out->Lay out vertically in splitter.  Then you can
> set the layout on your widget/dialog as needed.

The splitter layouts are also available in the toolbar between the vertical 
and grid layouts.

Bo.

-- 
 [ signature omitted ] 

Message 6 in thread

On Dec 19, 2007, at 11:32 AM, Vladimir Pouzanov wrote:

> Is there any widget that would allow dynamical adjusting of two  
> widgets height
> in QVerticalLayout? I.e. if I grab such widget with mouse and move  
> it one of
> my widgets becomes smaller and aother one is growing.

QSplitter

-- 
 [ signature omitted ]