[Qt-interest] Question regarding QTableView 4.5
Diego Schulz
dschulz at gmail.com
Sat Jul 4 16:22:32 CEST 2009
2009/7/4 Patric <userqt at gmail.com>:
> Hello,
> is there an easy way to set the text alignment for cells in QTableView,
> using QStandardItemModel ?
>
> Thank you
> Patric
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
It depends on what you mean by "easy way" :)
There's a great article about this in the documentation.
http://doc.trolltech.com/4.5/model-view-creating-models.html
I think you're interested in the concept of Roles.
Also, there's an excellent webcast on Model/View framework at
http://www.ics.com/learning/icsnetwork/
IIRC, you will need to register (for free) at ICS website in order to
be able to download.
regards,
diego
More information about the Qt-interest-old
mailing list