[Qt-interest] Regarding the QTableView visualization

Patric userqt at gmail.com
Fri Jul 3 12:29:45 CEST 2009


Hello, 
I'm trying to style my QTableView, but it turned out that is not so easy to do it.  
I have two problems. 
1. I want the header to by styled. But apparently, it is separated into 3 parts. See the attachment. 
I succeeded to style the yellow part, but I can't manage to style the red part, and when I style the blue part (with styles on QFrame), it also colors the background of the who0le table. And I don't want that. 

2. I want to center the text in my cells. Does anyone know is there a way to do it ? I tried with text-align:center; but no effect.

Thank you very much.

Best regards, 
Patric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090703/a7a8a1d1/attachment.html 


More information about the Qt-interest-old mailing list