[Qt-interest] I have a problem for add a custom widget to vboxlayout
Kermit Mei
kermit.mei at gmail.com
Mon Aug 16 11:10:58 CEST 2010
On Mon, 2010-08-16 at 17:03 +0800, wanneng wrote:
> I have a widget A which inherited from the QWidget, and reimplement its
> paintEvent method, others is not changed.
> then, I add my custom widget A to a QVboxLayout.
>
> But when I run the program, it show the widget A, but not manage the
> size. Its means that When A is out of the view port, the QVboxLayout
> does not create the scroll bar, I think may be there are some other
> methods needed to reimplemented.
>
> Is there anyone can help me? thank you anyway.
I remember that QVboxLayout will never create the srcoll bar for its
children widget. It just layouts the widgets.
B.R
Kermit
More information about the Qt-interest-old
mailing list