Hi,I have a QTableView in a QTableWidget
How can I get the viewport of the QTableWidget.Qt Code:
addTab(new MyTableView,tr("what"));To copy to clipboard, switch view to plain text mode
Who is the parent of the QTableView.
Thanks
Hi,I have a QTableView in a QTableWidget
How can I get the viewport of the QTableWidget.Qt Code:
addTab(new MyTableView,tr("what"));To copy to clipboard, switch view to plain text mode
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.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.
xiangxw (4th May 2011)
Bookmarks