Hi,I have a QTableView in a QTableWidget
How can I get the viewport of the QTableWidget.Code:
addTab(new MyTableView,tr("what"));
Who is the parent of the QTableView.
Thanks
Printable View
Hi,I have a QTableView in a QTableWidget
How can I get the viewport of the QTableWidget.Code:
addTab(new MyTableView,tr("what"));
Who is the parent of the QTableView.
Thanks
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.Quote:
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.Quote:
Who is the parent of the QTableView.