Re: [Interest] Revert the selection in a QTreeView

2015-01-14 Thread André Somers
Glenn Ramsey schreef op 14-1-2015 om 00:23: > On 14/01/15 11:50, Nurmi J-P wrote: >>> On 13 Jan 2015, at 22:45, Glenn Ramsey 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 >>> oth

Re: [Interest] Revert the selection in a QTreeView

2015-01-13 Thread Tony Rietwyk
Glenn wrote: > Sent: Wednesday, 14 January 2015 8:45 AM > > 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 previo

Re: [Interest] Revert the selection in a QTreeView

2015-01-13 Thread Glenn Ramsey
On 14/01/15 11:50, Nurmi J-P wrote: > >> On 13 Jan 2015, at 22:45, Glenn Ramsey 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 mes

Re: [Interest] Revert the selection in a QTreeView

2015-01-13 Thread Nurmi J-P
> On 13 Jan 2015, at 22:45, Glenn Ramsey 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 s

[Interest] Revert the selection in a QTreeView

2015-01-13 Thread Glenn Ramsey
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 p