Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. checkbox in floating menu (MainWindow ui)

checkbox in floating menu (MainWindow ui)

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 359 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on 5 Sept 2023, 06:10 last edited by
    #1

    Is it possible to put checkbox or any other kind of modifier near 1 2 3 4 ?

    Kindly advise

    ad00be0b-1bd9-47c6-ab37-57394d8737db-image.png

    J S 2 Replies Last reply 5 Sept 2023, 07:48
    0
    • J JacobNovitsky
      5 Sept 2023, 06:10

      Is it possible to put checkbox or any other kind of modifier near 1 2 3 4 ?

      Kindly advise

      ad00be0b-1bd9-47c6-ab37-57394d8737db-image.png

      J Offline
      J Offline
      JonB
      wrote on 5 Sept 2023, 07:48 last edited by
      #2

      @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.

      J 1 Reply Last reply 6 Sept 2023, 03:26
      0
      • J JacobNovitsky
        5 Sept 2023, 06:10

        Is it possible to put checkbox or any other kind of modifier near 1 2 3 4 ?

        Kindly advise

        ad00be0b-1bd9-47c6-ab37-57394d8737db-image.png

        S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 5 Sept 2023, 19:33 last edited by SGaist 9 May 2023, 19:34
        #3

        @JacobNovitsky hi,

        You were already answered to that question in this thread of yours.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • J JonB
          5 Sept 2023, 07:48

          @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.

          J Offline
          J Offline
          JacobNovitsky
          wrote on 6 Sept 2023, 03:26 last edited by
          #4

          @JonB I need to place checkbox here before sub-menuscheck_box_1.png

          P J 2 Replies Last reply 6 Sept 2023, 03:52
          0
          • J JacobNovitsky
            6 Sept 2023, 03:26

            @JonB I need to place checkbox here before sub-menuscheck_box_1.png

            P Offline
            P Offline
            Pl45m4
            wrote on 6 Sept 2023, 03:52 last edited by
            #5

            @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.


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            1 Reply Last reply
            1
            • J JacobNovitsky
              6 Sept 2023, 03:26

              @JonB I need to place checkbox here before sub-menuscheck_box_1.png

              J Offline
              J Offline
              JonB
              wrote on 6 Sept 2023, 07:58 last edited by JonB 9 Jun 2023, 08:00
              #6

              @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?

              1 Reply Last reply
              1

              3/6

              5 Sept 2023, 19:33

              • Login

              • Login or register to search.
              3 out of 6
              • First post
                3/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved