
Originally Posted by
marcel
You must create another widget that you will set as the scroll area contents with QScrollArea::setWidget and then create your buttons with this widget as parent.
He is doing so:
qs->setWidget(ctable);
QScrollArea* qs = new QScrollArea;
qs->setWidget(ctable);
To copy to clipboard, switch view to plain text mode
Also, the grid layout must be set for this widget.
He is doing that too:
setLayout(lay);
QGridLayout *lay = new QGridLayout;
setLayout(lay);
To copy to clipboard, switch view to plain text mode
It's just the actual usage of the layout that's missing.
Bookmarks