[Interest] Revert the selection in a QTreeView

Nurmi J-P jpnurmi at theqtcompany.com
Tue Jan 13 23:50:08 CET 2015


> On 13 Jan 2015, at 22:45, Glenn Ramsey <gr at componic.co.nz> wrote:
> 
> 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.

Have you considered simply disabling such items? Then there's no need to revert anything or show annoying error messages. :)

--
J-P Nurmi




More information about the Interest mailing list