tiptop
16th March 2008, 17:33
Hello!
I am using Interview with a QTreeView view and my own model. Some lines of the data the model works on change frequently without any user input.
I told the data-object to emit a signal which is conneted to a function in the model. This function checks which lines have changed and emits the dataChanged signal.
The signal is emitted without any problems but the view seems not to recognize this. I have to minimize and maximize the window so that the changes apply (I think this causes a reload of every line, doesn't it?).
Adding new lines works fine. When I add a new line, the refresh described above also happens. (All the other lines are refreshed when i add one single new line)
Thank you!
I am using Interview with a QTreeView view and my own model. Some lines of the data the model works on change frequently without any user input.
I told the data-object to emit a signal which is conneted to a function in the model. This function checks which lines have changed and emits the dataChanged signal.
The signal is emitted without any problems but the view seems not to recognize this. I have to minimize and maximize the window so that the changes apply (I think this causes a reload of every line, doesn't it?).
Adding new lines works fine. When I add a new line, the refresh described above also happens. (All the other lines are refreshed when i add one single new line)
Thank you!