PDA

View Full Version : Refresh Issue



kaushal_gaurav
14th August 2008, 11:33
Hi,

I have a dialog and a QTableView in it and one row is check box Qt::CheckstateRole
i have other button on dialog that updates these check boxex like ' select all' i have called
setData() function of Model and it updates the model but UI is not refreshed.

it is refreshed only when i click on QTableView Widget.

Help.

wysota
14th August 2008, 13:01
What is the model? Yours or a predefined one? How exactly do you call setData()?

aamer4yu
14th August 2008, 18:34
How about calling QAbstractItemModel::reset after you have set the check states :)