PDA

View Full Version : QTreeView cell as table



^NyAw^
25th June 2009, 11:12
Hi,

I have a model that is show in a QTreeView.
Can I show a table as a QTreeView cell?

Representation:
Name Value
Parameter1 1
Parameter2 Table
Parameter3 10

It's possible to do this?

Thanks,

aamer4yu
25th June 2009, 19:40
I guess with delegates you can do that. You could use a QTextDocument to render the table onto the delegates painter. And yea table can be created with simple html. Hope this solution works for u :)

^NyAw^
26th June 2009, 10:45
Hi,

I have created my delegate derived from QItemDelegate. Then I need to derivate my delegate from QAbstractItemDelegat, right? And could then be possible to paint the table as a QTableWidget?

Thanks,