Hello dear community,
Is it possible to change the "Selection Mode" property of the Selection List widget while runtime, ex. with the push of another button, change the selection mode of a desired Selection List in the same panel from "SingleSelection" to "MultiSelection"?
Any suggestions would be helpful!
Selection List selection mode
- adaneau
- Posts:310
- Joined: Tue Feb 21, 2012 9:49 am
Re: Selection List selection mode
Hi,
It doesnt seem to be possible. I see 2 solutions for you:
- Have 2 objects selection list, one single mode and other multiple mode, and make them visible/invisible via push button
- Do you own selection list via QT widget and map the missing parameter.
BR
Alex
It doesnt seem to be possible. I see 2 solutions for you:
- Have 2 objects selection list, one single mode and other multiple mode, and make them visible/invisible via push button
- Do you own selection list via QT widget and map the missing parameter.
BR
Alex
- gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: Selection List selection mode
You could try something like this:
Code: Select all
LIST.styleSheet = "QListWidget { qproperty-selectionMode: \"MultiSelection\"; }";