How not to show selection when QTreeView has no focus?
-
Hi,
Do you mean clear the selection and reinstate it afterward ?
The focusInEvent and focusOutEvent are likely what you are looking for.
Out of curiosity, why do you want that behaviour ? It makes your users lose information about the state of the application.
-
@SGaist said in How not to show selection when QTreeView has no focus?:
Do you mean clear the selection and reinstate it afterward ?
The focusInEvent and focusOutEvent are likely what you are looking for.Yes. If there is no flag for this, events must help.
@SGaist said in How not to show selection when QTreeView has no focus?:
Out of curiosity, why do you want that behaviour ? It makes your users lose information about the state of the application.
Because most of the time, it's for view only.
If any combination of focus policies is possible, it'll be more powerful, user demands in appications can be very special.