dumd update dont work. also i have delegate performs paint; i want to redraw whole row, when current row changed(e.g set bold font); also i considered that when i change some cell data QItemDelegate calls drawDisplay() but don't calls paint()!
dumd update dont work. also i have delegate performs paint; i want to redraw whole row, when current row changed(e.g set bold font); also i considered that when i change some cell data QItemDelegate calls drawDisplay() but don't calls paint()!
Last edited by GreenScape; 9th August 2010 at 16:39.
in general you need to make sure that this signal is emitted for the model indices you care about.
http://doc.trolltech.com/4.5/qabstra...ml#dataChanged
thanks for reply and link. i made some hack, which send signal for me, ie :
Qt Code:
item.setData(Qt::userRole, "blah1"); item.setData(Qt::userRole, "blah2");To copy to clipboard, switch view to plain text mode
each time i need to redraw this item.
Bookmarks