[Interest] Revert the selection in a QTreeView

Glenn Ramsey gr at componic.co.nz
Wed Jan 14 00:23:48 CET 2015


On 14/01/15 11:50, Nurmi J-P wrote:
> 
>> 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. :)
> 

Yes, that might be the right solution. On the other hand, I'm not the interface
designer.




More information about the Interest mailing list