You mean a table view inside a tab widget?
If you ask about QTableWidget then use its viewport() method. If you ask about the tab widget then it doesn't have a viewport.How can I get the viewport of the QTableWidget.
If you mean your code snippet then the direct parent will be the stacked widget inside QTabWidget.Who is the parent of the QTableView.
Bookmarks