menu entry which could disable all submenu entries
I have a menu, its entry can activate or deactivate other functionalities. Now I want to group some functionalities into one menu entry, and the activate and deactivate could be done more conveniently. That is to say, click menu entry "group1" will trigger the activate or deactivate its sub entries. But its sub entries have their own activate or deactivate functionalities, as before.
Anyone knows this? Thanks.
Re: menu entry which could disable all submenu entries
Look at QActionGroup. Put all of the QAction instance that you want to be connected into a QActionGroup, and enable or disable the group. Each QAction can still be enabled or disabled independently.
Re: menu entry which could disable all submenu entries
Thanks very much.
I am going to search for that.
:)
Quote:
Originally Posted by
d_stranz
Look at
QActionGroup. Put all of the QAction instance that you want to be connected into a QActionGroup, and enable or disable the group. Each QAction can still be enabled or disabled independently.