[Qt-interest] How Can I align to center all items from a specific column of QTableView ?

Malyushytsky, Alex alex at wai.com
Thu Oct 22 22:46:01 CEST 2009


You don't have to write your model.
You can use setItemDelegateForColumn  for example as in

http://lists.trolltech.com/qt-interest/2007-04/thread00349-0.html

Search for QItemDelegate in documentation for more information.

Best regards,

Alex



-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Mhayk Whandson
Sent: Thursday, October 22, 2009 10:19 AM
To: Qt Interest (qt-interest at trolltech.com)
Subject: [Qt-interest] How Can I align to center all items from a specific column of QTableView ?

Stefano,

I am using a QSqlQueryModel, and I passed the model for qtableview.
The column 6 I want to align to center, so I will need to write my
model to manage this ?

best regards,

--
Mhayk Whandson
Linux User #413723
E-mail: eu at mhayk.com.br
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."




More information about the Qt-interest-old mailing list