[Qt-interest] QTreeWidget events

Predrag Manojlovic pedjaman at gmail.com
Thu Oct 8 16:46:27 CEST 2009


Hi,

There is signal for changing current item in Qt4 QTreeWidget:
currentItemChanged(QTreeWidgetItem* previous, QTreeWidgetItem* current);

but there is no way to prevent such change.

Example:
If in this handler I ask person "Changing current location. Are you
sure?" and person decide to abort (keep current location) there is no
way to do that.

Any suggestions?

Thank you
Predrag



More information about the Qt-interest-old mailing list