[Qt-interest] Sub rows within a QTableView
Brian Zambrano
brianz at gmail.com
Thu Dec 30 00:14:56 CET 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101229/b70974ae/attachment.html
More information about the Qt-interest-old
mailing list