Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in
read-only mode
.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi, i have a QVboxLayout which contains a varying amount of buttons.
when there are too many to fit on screen i would like them to auto scroll using a QScrollArea.
The QVboxLayout with the buttons in it is inside another QVboxLayout.
this is what it looks like at the moment:
http://tinypic.com/r/1zv9y5s/5
as you can see the buttons actually go off screen.
could anyone push me in the right direction?
i did have it working how i wanted using a QWidget but this would show in a window on its own.
Regards, Tim.
@QWidget *central = new QWidget;
QScrollArea *scroll = new QScrollArea;
QVBoxLayout *g = new QVBoxLayout(central);
scroll->setWidget(central);
scroll->setWidgetResizable(true);
vbox2->addWidget(scroll);@
then i add my buttons to g