On 01/02/2013 12:07 PM, Frank Hemer wrote: > On Wednesday 02 January 2013 10:46:24 Goblin Coding wrote: >> Hi Tony, >> >> You make a valid point. Originally the idea was to allow for scrollbars, >> but since that comes with an entirely different set of issues (as soon as >> the scrollbar appears, it "cramps the style" of the remaining >> widgets...i.e. when the horizontal scrollbar is created, it actually uses >> some of the available vertical space and overlaps some of the widgets in >> the scroll area...I hope that makes sense). >> >> I'll try using a standard QWidget as parent (as opposed to the QScrollArea) >> and see how that pans out. >> >> I also realise that there are no guarantees regarding the look of the Qt >> widgets on different platforms. What I actually wanted to find out is if >> there was a way to design a widget in Qt Designer so that the way it looks >> in Designer will be the way it is created at run-time? (i.e. if I tweak it >> on Windows and run it on Windows, it should look fine on Windows...if I >> subsequently go tweak it on Linux and run it on Linux, it should look fine >> on Linux). My problem is that, so far, it seems setting min values is a >> hit and miss operation - tweak value, compile, run, see what it looks like, >> realise it's too big/small, tweak value, compile, etc etc. > What you would need is a 'getMinRequiredSize' method ... > I whish this would exist - as it would allow for choosing different layouts > according to the available space, i.e. to create specialized layout managers. > Currently calculating the expected size _BEFORE_ showing a widget is really > expensive ...
+1 > > Frank > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest