1 Attachment(s)
QItemDelegate highlight row
Hello,
I have implemented my own QItemDelegate for items in one column of a QTreeView.
Now what is missing is the code to highlight the whole row when the mouse is somewhere above the row.
The selection stops when my delegate starts and i need it to continue with the same style as before (see attachement).
Attachment 11738
Anybody already tried this?
I hope somebody can help me.
Thank you in advance.
Re: QItemDelegate highlight row
it is not clear what you are asking and your picture, showing everything shaded in some way, does not help much.
Re: QItemDelegate highlight row
Never mind,
found the solution by making sure to copy all parameters from the paint call to drawPrimitive befor doing the rest of my drawing.
Code:
{
...
...
//Do my drawing
}