QDockWidget contains ONE widget. Calling QDockWidget::setWidget() multiple times won't add multiple widgets in the dock widget. Create a layout, add buttons to it, install the layout on a container widget and set the container widget inside the dock widget.
Bookmarks