[Qt-interest] How to make a table with widget entries?

B.W.H. van Beest bwvb at xs4all.nl
Thu Mar 4 23:29:45 CET 2010


Hi,

I would like to display a table, with at each entry a (different)
QWidget. Indeed very much like a QTableWidget.
However, I need to set my own (table) model, but
QTableWidget::setModel() is unaccessible (private).
So I need to create my own version of a TableView (subclassed from
QTableView),  that is capable
to display the entry at each [row,column].

I don't understand how to do this. Reading the source code of
QTableWidget did not help me.
Is there somebody who could give me a steer how to do this?

Thanks in advance.
Bertwim

 



More information about the Qt-interest-old mailing list