Hi, In a QTreeView how can I revert the selection?
The behaviour I want is that when the user selects an item, then based on some other state, it will either accept the selection or message the user and revert to the previous selection. The currentChanged method gives me the QModelIndex of the previous selection so I can use treeview.setCurrentIndex to set it to the previous index, but this causes recursion. I guess I could use a flag to prevent the recursion, but I'm wondering if there is a better way to get the same behaviour. Glenn _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest