Quote Originally Posted by marcel View Post
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:
Qt Code:
  1. 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:
Qt Code:
  1. setLayout(lay);
To copy to clipboard, switch view to plain text mode 

It's just the actual usage of the layout that's missing.