Then how should the environment know how big your widget is or wants to be? If you told the scroll area it can resize your widget (setWidgetResizable(true)) then it does. If the sizeHint() is empty (the default) then the widget can be resized as its owner sees fit. You should implement sizeHint() and optionally also minimumSizeHint() and maybe also set proper size policy for it.
I'm unablle to layout my widgets, giving to them the sizeHint, I'm unable to say that they can grow in 1 direction and not in another etc.
I like QT, but I don't know why I can not learn layout concepts nor build a good gui.
If you want I can send you an image explaining what I exactly would implement
No problem with the back end
Franco Amato
Bookmarks