How could I rewrite my TableView`s header??
-
-
Well, I don't see 5 columns in that screenshot.
Oh... wait, I think I know what you mean. At first, I thought you meant that you did not get a separator (and rightly considdered this a bug). Now, I understand that you want to remove the separator, and are asking how to do that.There is no simple way for that. I'd personally try to subclass QHeaderView and reimplement the paintevent to render another section (via the style) over the two sections. No idea if that would be hard to pull off though.
-
I used a QProxyStyle to draw a widly rect on column4 , wide enough to cover the column5
s separator ....My original intention is when I trying to create a two-checkrole on one cell in QTableView,but I found it is hard to implement and manipulate its check state...So I
m trying to figure it another way ...
but another question came out...
How can I prevent a mouse-change when i mouse hover on a separator? -
You have to search some solution from here:
http://doc.qt.digia.com/4.7-snapshot/qheaderview.html