[Qt-interest] When does a custom widget need a custom sizeHtin() ?

Stephen Collyer scollyer at netspinner.co.uk
Mon Dec 14 11:30:38 CET 2009


I have created a custom widget derived from QWidget. It comprises two other
standard Qt widgets arranged in a QLayout.

Does this need a custom sizeHint() ?

When does a custom widget require a custom sizeHint() ? Maybe when it's not
a simple composition of widgets inside a QLayout ?

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


More information about the Qt-interest-old mailing list