RThaden
1st February 2008, 17:36
Hi all,
I have a QTableView with a custom model underneath and delegates to render the view in different ways.
If I e.g. change a double value, I use a QDoubleSpinBox which works fine.
However, it is possible that the value that is currently edited is changing due to another mechanism. Then, the model is informed of the change and emits dataChanged(). But then, the value in the already open spinbox does not change.
How do I inform the editor (QDoubleSpinBox) that it should update its value while it is active?
When I close the editor and change to another cell, the value is correctly updated but not _while_ I am editing it.
Any help appreciated.
Regards,
Rainer
I have a QTableView with a custom model underneath and delegates to render the view in different ways.
If I e.g. change a double value, I use a QDoubleSpinBox which works fine.
However, it is possible that the value that is currently edited is changing due to another mechanism. Then, the model is informed of the change and emits dataChanged(). But then, the value in the already open spinbox does not change.
How do I inform the editor (QDoubleSpinBox) that it should update its value while it is active?
When I close the editor and change to another cell, the value is correctly updated but not _while_ I am editing it.
Any help appreciated.
Regards,
Rainer