PDA

View Full Version : How to paint row & column differently on cell mouse hover in QTableView.



Hetal
11th May 2011, 12:52
In QTableView when user does mouse hover on cell, I want to show row and column to which this hovered cell belongs with different background color.

For Example:

6402

Any idea on implementing this will help.

Thanks.

wysota
11th May 2011, 13:51
Implement a custom delegate for your table that will paint rows and columns based on mouse position and force update of the whole table when mouse pointer enters a new cell.