[Qt-interest] how to auto-resize dialog window

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Wed Oct 12 01:03:24 CEST 2011


Hi Vincent, 

 

The Qt layout system is horribly complicated and poorly documented.   You
have to keep playing with the settings in Designer, until you find a
combination that works. 

 

I suggest you try setSizeConstraint(QLayout::SetFixedSize) on the layout in
the dialog.  Despite its name, 'Fixed' within the layout system seems to
mean 'minimum'.  

 

Hope that helps, 

 

Tony.

 

 

 

Sent: Tuesday, 11 October 2011 6:26 PM

 

Dear all,

 

         Could anybody tell me how to auto-resize the dialog window the fit
for the widgets added in?

 

Thanks,

Vincent.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111012/498273e9/attachment.html 


More information about the Qt-interest-old mailing list