Solved QMenu single select
-
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 ?
-
Here is the python issue: https://stackoverflow.com/questions/48447053/one-qaction-checkable-at-time-in-qmenu
I think it explains it pretty well. -
See this example where a QActionGroup is created that makes only one alignment action selectable at a time.
-
Thank you!
I don't know why I couldn't find this on my own...