zarathustra zarathustra - 5 months ago 50
Python Question

QTableWidget select multiple cells permanently identical to Ctrl + MouseClick

Very simple question and hopefully very simple answer.

I have a

and want to select multiple cells by a simple mouse click, so that I can select some of them all at once. Normally it can be done by Ctrl + click, which works fine. But due to better usability I would like to change that behaviour!

Can anyone help me?

Thanks in advance!


Thanks to @vahancho, I solved the "problem"..

Here's the solution:


Possible Parameters are:

SingleSelection, MultiSelection, ExtendedSelection, ContiguousSelection

And documentation for each.

I hope I can help anyone searching for this solution!