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.
Bookmarks