[Qt-interest] setSizePolicy has no effect in subclass of QDialog

Stephen Collyer scollyer at netspinner.co.uk
Thu Jun 4 10:58:54 CEST 2009


2009/6/2 Farid Derradji <farid.derradji at itwm.fraunhofer.de>

> Hello Stephen,
>
> > I've found a way to achieve what I want in designer: if you click
> > on the form background, there is a context menu "Size constraints"
> > from which you can set min/max height/width. If you reduce the design
> > form to its maximum desired height, and set "Size Constraints"->
> > "Set Maximum Height", then the dialog cannot be resized vertically.
>
> After studying the official documentation I am convinced that you are on
> the right way.


This differs from your earlier concern though, about how the layout logic
will respond to, say, a font size change. I'm not at all convinced that
essentially
hard-coding the maximum size is the right thing to do.

-- 
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090604/b3f7ab8b/attachment.html 


More information about the Qt-interest-old mailing list