[Qt-interest] Different min size in designer vs. runtime?
Israel Brewster
israel at frontierflying.com
Wed Jul 22 18:29:47 CEST 2009
I have run into this problem a number of times. I design a window in
QtDesigner (actually the designer component of QtCreator), and make it
as small as I can - I want the window size to be fixed at the minimum
possible size. Upon running the application however, when the window
comes up, not only can I still resize it, but I can actually make it
smaller than I had it in designer (see attached screen shots, both of
which are at the smallest size I can make them). In designer, I have
set the following properties of the dialog:
QWidget:sizePolicy:HorizontalPolicy: Minimum (also tried fixed)
QWidget:sizePolicy:VerticalPolicy:Minimum (also tried fixed)
QDialog:sizeGripEnabled:False
Layout (vertical layout):LayoutSizeConstraint:setMinimumSize (also
tried setFixedSize)
In all cases, the window in designer (and, as a result, the window
when you first open it) is noticeably larger than the smallest size I
can resize it to. Also, in all cases, I can still resize the window,
although resizing does appear to be limited to the range from the
smallest size I can make in when running to the size set in the
designer, i.e. I can only resize it to make it smaller than what I
designed, not larger. What I want is a dialog that is truly the
minimum possible size when opened, and which can not be resized
(although I don't care about the latter as much). What am I missing?
What can I do to make this work? Thanks.
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 397 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090722/b391a5dd/attachment.bin
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 1.png
Type: image/png
Size: 13505 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090722/b391a5dd/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 2.png
Type: image/png
Size: 38239 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090722/b391a5dd/attachment-0001.png
More information about the Qt-interest-old
mailing list