QTreeWidget::itemChanged(QTreeWidgetItem*,int) signals when an item has changed. Is there a way to detect what has changed?
For example, if I edit an item (let's say it is text) - the signal is emitted. Based on the text value, the color of this item is changed. In a validation scheme, this would be like an item turning red because the value was not acceptable.
In the above case, the signal is emitted for the color and text change. I only want my block of code to be executed once so how can this be done? I am assuming that this can be done by detecting the type of change that occured... Is this reasonable?
J.
Bookmarks