[Interest] QStackedWidget and QListView

Rainer Wiesenfarth Rainer_Wiesenfarth at Trimble.com
Mon Jul 29 08:53:23 CEST 2013


From: Alexander Syvak
> However, the result is ...

QListView has a default size policy of "Expanding", thus keeping the initial
designed size on resize as long as possible. QStackedWidget has a size
Policy of "Preferred", which allows shrinking it to zero width. If you
resize you dialog, your stacked widget will appear. 

Using Qt Designer 4.7.3 (the version I had available) there seems to be no
other option than specifying a minimum width for the QStackedWidget or
adding widgets to it. Setting a size for QListView does not work.

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

-- 
Software Engineer | Trimble Imaging Division
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/geospatial/ | http://www.inpho.de/

Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6490 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130729/b755e130/attachment.bin>


More information about the Interest mailing list