QMenu single select
-
wrote on 23 Oct 2021, 16:37 last edited by
I'm trying to make a QMenu where you can only select one QAction.
It's for a tray menu.I was only able to find on post, but that was in Python.
-
Hi,
If it's using PyQt or PySide it should be translatable in C++.
That said, can you explain your use case ?
-
wrote on 26 Oct 2021, 15:26 last edited by
Here is the python issue: https://stackoverflow.com/questions/48447053/one-qaction-checkable-at-time-in-qmenu
I think it explains it pretty well. -
wrote on 26 Oct 2021, 16:06 last edited by
See this example where a QActionGroup is created that makes only one alignment action selectable at a time.
-
wrote on 26 Oct 2021, 16:56 last edited by
Thank you!
I don't know why I couldn't find this on my own...
1/5