checkbox in floating menu (MainWindow ui)
-
wrote on 5 Sept 2023, 06:10 last edited by
-
Is it possible to put checkbox or any other kind of modifier near 1 2 3 4 ?
Kindly advise
wrote on 5 Sept 2023, 07:48 last edited by@JacobNovitsky
If I understand right from the symbols at the right of the picture your items are sub-menus, right? Then as I discovered a while ago you cannot usefully have a checkbox against them. You can have a checkbox against items which invoke an action rather than open a sub-menu. -
Is it possible to put checkbox or any other kind of modifier near 1 2 3 4 ?
Kindly advise
Lifetime Qt Championwrote on 5 Sept 2023, 19:33 last edited by SGaist 9 May 2023, 19:34@JacobNovitsky hi,
You were already answered to that question in this thread of yours.
-
@JacobNovitsky
If I understand right from the symbols at the right of the picture your items are sub-menus, right? Then as I discovered a while ago you cannot usefully have a checkbox against them. You can have a checkbox against items which invoke an action rather than open a sub-menu.wrote on 6 Sept 2023, 03:26 last edited by@JonB I need to place checkbox here before sub-menus
-
@JonB I need to place checkbox here before sub-menus
wrote on 6 Sept 2023, 03:52 last edited by@JacobNovitsky said in checkbox in floating menu (MainWindow ui):
checkbox here before sub-menus
Then you will lose the menu-functionality. Either you have a submenu or an action with checkbox to toggle on and off. Both wont work.
There is a topic from @JonB about this, where we tested and discussed multiple options. Cant find it right now, you could use the forum search function. -
@JonB I need to place checkbox here before sub-menus
wrote on 6 Sept 2023, 07:58 last edited by JonB 9 Jun 2023, 08:00@JacobNovitsky
Exactly as I and @Pl45m4 wrote. As we said, I asked and tried just this maybe a year ago, and it does not work. Checkboxes do not work if the item is a sub-menu, they only work and are intended for use on an item which performs an action.Found the topic: Is a
QMenu
item supposed to be able to be checkable?
4/6