Qt 6.11 is out! See what's new in the release
blog
QListView and ContextMenu - Problem
General and Desktop
2
Posts
2
Posters
891
Views
2
Watching
-
I implemented a context menu in my ListView . The ListView allows multiple selection and everything seems to work properly.
The problem is that when opening the ContextMenu when I have selected several items , de- select all other selected items.
If I hold down the CTRL key works properly.
Some idea about the problem?
-
Hi,
AFAIK, it's not a problem. Having ctrl press tells your view that it's in multiple selection mode. If you release that key then you go back into single selection mode so when you click on one item (with either left or right mouse button), the selection would be cleared.