I am afraid this is not correct. You must determine the modifier keys in the mouse event, with QMouseEvent::modifiers().
regards
I am afraid this is not correct. You must determine the modifier keys in the mouse event, with QMouseEvent::modifiers().
regards
Thanks for the tips, it is more elegant and easier to do like this BUT the problem was not here since my way of detecting ctrl key press prior to clicking on an item works too (I printed the value of ctrl_key to check it of coursee) so the clear flag is off and I would expect that the already selected items remain selected, which is not the result I obtain.
Any help?
Bookmarks