[Qt-interest] QListView ModelColumn

David Boosalis david.boosalis at gmail.com
Fri Dec 4 16:37:02 CET 2009


I do no think QListView can handle this, but strangely enough QTreeView
can.  Just make sure to set decoration off.  The only major draw back to
QTreeView is that you cannot get grid lines to show up (someone correct me
if I am wrong).  You can set alternating colors for rows though and still
sort by any column



On Fri, Dec 4, 2009 at 5:54 AM, Philipp Schmidt <philschmidt at gmx.net> wrote:

> Hi,
>
> i was wondering if it is possible to get QListView to show more than one
> column from a QSqlTableModel. In my case i would like it to show first- and
> lastname together. (second and third column). If that is not possible in
> the
> default implementation, how would i need to proceed? My guess would be to
> overwrite the data() function in the Model.
>
> Kind Regards
> Philipp Schmidt
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091204/bd9b55ba/attachment.html 


More information about the Qt-interest-old mailing list