how to forse QTableWidget to update whole row, when any item changed.
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()!
Re: how to forse QTableWidget to update whole row, when any item changed.
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
Re: how to forse QTableWidget to update whole row, when any item changed.
thanks for reply and link. i made some hack, which send signal for me, ie :
Code:
item.setData(Qt::userRole, "blah1");
item.setData(Qt::userRole, "blah2");
each time i need to redraw this item.