Quote Originally Posted by Walter View Post
do I have to make a QMainWindow containing a QTableWidget and a QToolBar or is there another way?
Yes, this is the way to go. Still if any Qt widget can be made a top level widget (aka. window), only QMainWindow provides functionality such as menus, toolbars and dock widgets. You might want to set the QTableWidget as a central widget of the QMainWindow, see QMainWindow::setCentralWidget() for more details.