PDA

View Full Version : QTreeView and drawRow problem



roxton
27th February 2013, 21:46
Hello!
I'm trying to make a custom drawing of current item of QTreeView. So I reimplemended drawRow() at the subclass. But my drawRow does not runs at all. My QTreeView-subclass still calls the QTreeView::drawRow.
It's strange. Other reimplemented functions such as keyPressEvent works fine.

wysota
27th February 2013, 21:51
Check that the signatures match (including the const modifier).

roxton
27th February 2013, 23:35
Yes! Thanks a lot! :)