[Qt-interest] Sub rows within a QTableView
Malyushytsky, Alex
alex at wai.com
Thu Dec 30 00:43:28 CET 2010
Have you considered modifying QTreeView look so it satisfies you instead?
Table kind data is subset of tree view data.
It means you can display table data in tree view naturally,
At the same time you can't display tree in table view.
Alex
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Brian Zambrano
Sent: Wednesday, December 29, 2010 3:15 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Sub rows within a QTableView
I have an existing Qt (PyQt, really) application which uses a QTableView along with a custom model and delegate, subclassed from QAbstractTableModel and QStyledItemDelegate, respectively.
Now, I'd like to implement some behavior and I'm not sure on the exact approach to take in terms of implementation. In effect, I'd like certain rows in my table to behave like parents, and have one or more children. Other rows will have no children. A mockup is here:
http://brianz.s3.amazonaws.com/mockup.png
Of course, I could use a QTreeView, however I'd really like to keep the "table-ness" of the UI.
Is this achievable using a QTableView? Or, is there another approach I should be looking at?
Insight appreciated,
BZ
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list