How could I rewrite my TableView`s header??
I need no Separation line between my QTableView
s headers section4 to section5,How should I do ?
Sam last edited by
Explanation for the above screenshot ?? what is section 4 to section 5 ?
Edit : ScreenShot is updated, previously it was showing an image of a girl.
header`s column4 to column5, my fault ,bad English
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 Im 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?
broadpeak last edited by
You have to search some solution from here:
I think it would involve filtering the mouse events that happen when moving the mouse over the separator. If you're at the separator (or very close to it), just filter out the events.