Hi,
How do I display mulitple columns in a QListView that is connected to a QSqlTableModel.
For example I have a the following table:
player
-----------------------------
id | firstname | surname
-----------------------------
How do I list the "surname, firstname" in the QListView using models and views?
QListView has "setModelColumn" function but I can't use both columns.
Thanks Tim


Reply With Quote
And also columnCount() and all the pure abstract methods (but they are trivial to reimplement in your case).

Bookmarks