Reputation: 3042
I'm looking to avoid having my custom QAbstractItemDelegate's paint() function be called for option states that I'm not interested in. Specifically, I don't wish to support any hover functionality, so I would like to not repaint while mousing over a table cell.
Any suggestions?
Upvotes: 0
Views: 215
Reputation: 17535
I don't believe there's a way to disable painting for different kinds of events generically.
However, you should be able to disable painting as a result of a mouse hover by disabling mouse tracking:
myWidget->setMouseTracking(false);
Upvotes: 1