[Qt-interest] refresh QTableWidget
Constantin Makshin
cmakshin at gmail.com
Mon Jul 11 13:16:47 CEST 2011
I recommend using QTableView with a model based on QAbstractListModel or QAbstractTableModel, depending on the type/structure of elements in your list.
http://doc.qt.nokia.com/model-view-programming.html
http://doc.qt.nokia.com/qtableview.html
http://doc.qt.nokia.com/qabstractlistmodel.html
http://doc.qt.nokia.com/qabstracttablemodel.html
On Monday, July 11, 2011 01:21:02 PM Riccardo Roasio wrote:
> Hi,
>
> i would like to populate a QTableWidget starting from a QList so that
> every QList element correspond to a row
>
> If i add an element to a QList i would like to refresh the QTableWidget
>
> How can i do that?
>
> Thanks,
> Riccardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110711/d3a3d0d1/attachment.bin
More information about the Qt-interest-old
mailing list