PDA

View Full Version : Who evokes the QAbstractItemDelegate::paint(……) ?



CyberPunker
27th August 2018, 10:46
I want to custom the display of the QStyledItemDelegate item : when I press key_up and Key_down , it will draw a rectangle frame that will wrapping a whole row .

I think it should be implement in the QAbstractItemDelegate:: paint(……) function. But how to connect the key press event and the repaint operation ? I can't find the signla-slot style relationship between them.Who evokes the QAbstractItemDelegate:: paint(……) indeed ?

12956