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. Qt Creator Menus Disappearing

Qt Creator Menus Disappearing

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 6 Posters 13.5k Views 5 Watching
  • 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.
  • G Offline
    G Offline
    grpace
    wrote on last edited by
    #11

    Thanks, kshegunov, but I cannot think/believe it's a bug with the Unity desktop.
    No other application I use has the issue, and all of them are running under Unity.
    Just saying...

    kshegunovK 1 Reply Last reply
    0
    • G grpace

      Thanks, kshegunov, but I cannot think/believe it's a bug with the Unity desktop.
      No other application I use has the issue, and all of them are running under Unity.
      Just saying...

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #12

      Well, on the bugreport (cited above) there is other software that have the same problem. But in any case could you try another window manager?

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        grpace
        wrote on last edited by
        #13

        Sure !
        I was just thinking...
        I don't believe I saw this issue until after I did an update of Qt.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          grpace
          wrote on last edited by
          #14

          Well... I installed Gnome and the menus appear through it.

          I don't particularly care for the look of it... It would require moving/resizing widgets on all the dialogs of the app.

          @kshegunov said in Qt Creator Menus Disappearing:

          there is other software that have the same problem

          Please notice on the bug report cited it was also happening with Gnome3, KDE, XMonad, etc. An app included in the list is VLC. VLC is a Qt-based app. A couple of other apps are listed there as well.

          So... With all due respect, I reaffirm...
          This is a bug in Qt itself... Not a specific window manager.

          kshegunovK 1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #15

            Hi,

            Just to be sure one thing is clear: appmenu-qt5 is not part of Qt 5.

            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
            1
            • G Offline
              G Offline
              grpace
              wrote on last edited by
              #16

              Thanks, @SGaist.

              It is stated on the bug report that eventually it would be completely removed, anyway. I have removed it, but it didn't fix the issue. Also, based on the bug report, there doesn't appear to be any progress toward resolving the issue.

              mrjjM 1 Reply Last reply
              0
              • G grpace

                Thanks, @SGaist.

                It is stated on the bug report that eventually it would be completely removed, anyway. I have removed it, but it didn't fix the issue. Also, based on the bug report, there doesn't appear to be any progress toward resolving the issue.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #17

                @grpace
                As far as I recall there was a option to not move menu to the unity thing.
                (a unity option)
                https://askubuntu.com/questions/10481/how-do-i-enable-or-disable-the-global-application-menu/11165

                That would might cure Creator not working.

                It also seems possible to make it work. ( I understand u might like unity)
                https://nsl.cz/enabling-global-menu-in-qt-creator-in-unity-ubuntu-14-04/
                But seems it only worked in 3.6 Creator.
                Did not test it though as i use anything but unity.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  grpace
                  wrote on last edited by
                  #18

                  @mrjj
                  I have tried both options on the menu placement. One option is the "global" position as you mention (the main top bar). The other option is to place the menus in the windows' title bar. I have tried both options and neither solves the issue.

                  1 Reply Last reply
                  0
                  • G grpace

                    Well... I installed Gnome and the menus appear through it.

                    I don't particularly care for the look of it... It would require moving/resizing widgets on all the dialogs of the app.

                    @kshegunov said in Qt Creator Menus Disappearing:

                    there is other software that have the same problem

                    Please notice on the bug report cited it was also happening with Gnome3, KDE, XMonad, etc. An app included in the list is VLC. VLC is a Qt-based app. A couple of other apps are listed there as well.

                    So... With all due respect, I reaffirm...
                    This is a bug in Qt itself... Not a specific window manager.

                    kshegunovK Offline
                    kshegunovK Offline
                    kshegunov
                    Moderators
                    wrote on last edited by
                    #19

                    @grpace said in Qt Creator Menus Disappearing:

                    With all due respect, I reaffirm...

                    You can't reaffirm, unless you can show it's a bug in Qt's menu classes/integration. And it doesn't appear you can if it works okay on gnome and there are other Qt applications that work fine on Unity. Either the WM or the application is doing something fishy with the menu as I see it. Feel free to search for open reports on Qt's bugtracker, as the cited one above is for Ubuntu, not for Qt.

                    Read and abide by the Qt Code of Conduct

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      grpace
                      wrote on last edited by
                      #20

                      @kshegunov said in Qt Creator Menus Disappearing:

                      You can't reaffirm, unless you can show it's a bug in Qt's menu classes/integration.

                      This indicates it's the way the menu classes/integration is being implemented.
                      https://bugreports.qt.io/browse/QTCREATORBUG-17519

                      From that report:

                      Qt Creator 4.2.2
                      Based on Qt 5.8.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
                      Built on Apr 3 2017 04:08:21
                      From revision 991f5eb6a5
                      Edit: My work around is to not open it with the Default Form Editor, but right click on the .ui file and "Open With->Qt Designer"
                      

                      I have tested the above and can verify that method does work... The menus are displayed that way.

                      Consider it reaffirmed... Again.

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        grpace
                        wrote on last edited by
                        #21

                        And also from the above mentioned report:

                        As far as I can see, the only things that Qt Creator does is menuBar = new QMenuBar; and then mainWindow->setMenuBar(menuBar); (not this exact code, but effectively). And then integrating the Designer form editor, and the menu bar that a main window in the form editor has then creates this issue.
                        
                        Regarding QMainWindows: We create lots of them, also as child of the main Qt Creator window. Designer's form editor is put into a QMainWindow, which itself is embedded (through some layers of "normal" widgets) into Qt Creator's main QMainWindow. None except the single main Qt Creator window gets a menuBar set though.
                        
                        1 Reply Last reply
                        0

                        • Login

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