[Qt-interest] can a qdockwidget be smaller that the contained widgets?
Shi Yan
billconan at gmail.com
Fri Nov 13 19:57:04 CET 2009
hello guys,
i have a dockwidget, containing so many buttons. i want the size of
the widget be smaller than the height of all the buttons adding up.
but it seems that i'm not allowed to to that. but i did see some qt
program allow the flexible adjustment of the dockwidget's height.
but i don't know how to do that.
i'm attaching an image, on the left, is the dockwidget i have now, the
top dockwidget cannot be smaller, because of the button heights.
on the right, there is a fake image i made to show the effect i want.
i want the dockwidget to hide some buttons if they are outside the
region, but it can't, it just cannot be smaller.
better if the dockwidget can show vertical scrollbar when widgets are
outside the region, but it seems that the dockwidget can only show
horizontal scrallbar when the widget's width is not enough.
thanks.
the image can be seen here
http://www.qtcentre.org/forum/f-qt-programming-2/t-can-a-qdockwidget-be-smaller-than-the-contained-widgets-25657-post122568.html#post122568
More information about the Qt-interest-old
mailing list