Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. ContextMenu QtCreator 12.0.1 way too big
Forum Updated to NodeBB v4.3 + New Features

ContextMenu QtCreator 12.0.1 way too big

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qtcreator12
14 Posts 5 Posters 3.8k Views 4 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.
  • P Offline
    P Offline
    Pl45m4
    wrote on 6 Jan 2024, 18:10 last edited by Pl45m4 1 Jun 2024, 18:43
    #1

    I upgraded my QtC from 10 to 12.0.1 and now every time I right-click in the editor (any opened file), I see this:

    The context menu is like 85% of my whole screen (1920 x 1080)

    KontextMenu.png

    Is it my system? Anyone has seen this before? I dont think it should be this huge, right?


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

    ~E. W. Dijkstra

    M C 2 Replies Last reply 6 Jan 2024, 19:35
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Jan 2024, 19:30 last edited by
      #2

      Hi,

      That looks pretty big indeed !
      On which OS does it happen ?

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

      P 1 Reply Last reply 7 Jan 2024, 00:42
      0
      • P Pl45m4
        6 Jan 2024, 18:10

        I upgraded my QtC from 10 to 12.0.1 and now every time I right-click in the editor (any opened file), I see this:

        The context menu is like 85% of my whole screen (1920 x 1080)

        KontextMenu.png

        Is it my system? Anyone has seen this before? I dont think it should be this huge, right?

        M Offline
        M Offline
        Mesrine
        wrote on 6 Jan 2024, 19:35 last edited by
        #3

        @Pl45m4

        Someone should ban that language(German?) from user interfaces :) .
        Designers are not magicians.

        1 Reply Last reply
        0
        • P Pl45m4
          6 Jan 2024, 18:10

          I upgraded my QtC from 10 to 12.0.1 and now every time I right-click in the editor (any opened file), I see this:

          The context menu is like 85% of my whole screen (1920 x 1080)

          KontextMenu.png

          Is it my system? Anyone has seen this before? I dont think it should be this huge, right?

          C Offline
          C Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on 6 Jan 2024, 20:01 last edited by
          #4

          @Pl45m4 Do you by any chance have resolution scaling enabled in Windows display settings? The number of options in that menu sure could use a trim at this point, but at 1080p I still have some room left. Only at 125% scaling an up do I get the wrapping you see. If so it's pretty unusual to have scaling enabled at such a low resolution. What type of display do you have? Is it one of those small form factor notebooks or something?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            CPPUIX
            wrote on 6 Jan 2024, 20:11 last edited by
            #5

            I'm on Fedora KDE Spin, and I noticed this too, but I just rely on shortcuts, that context menu is way too big and filled for me anyway.

            There is an option (I'm using Qt Creator 12.0.0) that allows hiding keyboard shortcuts, and it makes the context menu somewhat thinner.

            You can find it under:

            Preferences->Environment->Interface
            

            Uncheck "show keyboard shortcuts...".

            qtcreatorshortcutsoption.png

            With shortcuts:

            qtcreatorwithShortcuts.png

            Without shortcuts:

            qtcreatorwithoutShortcuts.png

            Someone asked about it on SO a while ago:

            • Qt Creator 12.0.0 context menu covers almost all content
            1 Reply Last reply
            2
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 6 Jan 2024, 20:30 last edited by
              #6

              Strange, I can't reproduce that on macOS.

              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
              • S SGaist
                6 Jan 2024, 19:30

                Hi,

                That looks pretty big indeed !
                On which OS does it happen ?

                P Offline
                P Offline
                Pl45m4
                wrote on 7 Jan 2024, 00:42 last edited by Pl45m4 1 Jul 2024, 00:49
                #7

                @SGaist said in ContextMenu QtCreator 12.0.1 way too big:

                On which OS does it happen ?

                I didn't add that because I thought one could tell from the screenshot ;-)

                @Mesrine said in ContextMenu QtCreator 12.0.1 way too big:

                Someone should ban that language(German?) from user interfaces :) .

                Yes German, but other languages make no difference.

                @Chris-Kawa said in ContextMenu QtCreator 12.0.1 way too big:

                Do you by any chance have resolution scaling enabled in Windows display settings?

                Not that I know of.

                What type of display do you have? Is it one of those small form factor notebooks or something?

                Yes it's a Notebook, but a regular 15.6" size FullHD screen.

                Were there any major changes to QtCreator menus lately? I used QtC 7 and 10 before and never faced any issues or changed anything myself regarding screen resolution or scaling

                @Abderrahmene_Rayene said in ContextMenu QtCreator 12.0.1 way too big:

                I'm on Fedora KDE Spin, and I noticed this too, but I just rely on shortcuts, that context menu is way too big and filled for me anyway.

                Good to hear that I'm not the only one :)
                I also don't use it that much, but I upgraded QtC and this was the first thing I've noticed. It's pretty annoying because you can't see sh*t when right-clicking :D
                and if you are not careful, you left-click somewhere to make the menu go away and by doing it, you activate some random menu option, because this thing is litterally all over the screen.

                @SGaist said in ContextMenu QtCreator 12.0.1 way too big:

                Strange, I can't reproduce that on macOS.

                Worth the 2k extra you'll need to spend for a Mac :-P :-P


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

                ~E. W. Dijkstra

                C 1 Reply Last reply 7 Jan 2024, 03:22
                0
                • P Pl45m4
                  7 Jan 2024, 00:42

                  @SGaist said in ContextMenu QtCreator 12.0.1 way too big:

                  On which OS does it happen ?

                  I didn't add that because I thought one could tell from the screenshot ;-)

                  @Mesrine said in ContextMenu QtCreator 12.0.1 way too big:

                  Someone should ban that language(German?) from user interfaces :) .

                  Yes German, but other languages make no difference.

                  @Chris-Kawa said in ContextMenu QtCreator 12.0.1 way too big:

                  Do you by any chance have resolution scaling enabled in Windows display settings?

                  Not that I know of.

                  What type of display do you have? Is it one of those small form factor notebooks or something?

                  Yes it's a Notebook, but a regular 15.6" size FullHD screen.

                  Were there any major changes to QtCreator menus lately? I used QtC 7 and 10 before and never faced any issues or changed anything myself regarding screen resolution or scaling

                  @Abderrahmene_Rayene said in ContextMenu QtCreator 12.0.1 way too big:

                  I'm on Fedora KDE Spin, and I noticed this too, but I just rely on shortcuts, that context menu is way too big and filled for me anyway.

                  Good to hear that I'm not the only one :)
                  I also don't use it that much, but I upgraded QtC and this was the first thing I've noticed. It's pretty annoying because you can't see sh*t when right-clicking :D
                  and if you are not careful, you left-click somewhere to make the menu go away and by doing it, you activate some random menu option, because this thing is litterally all over the screen.

                  @SGaist said in ContextMenu QtCreator 12.0.1 way too big:

                  Strange, I can't reproduce that on macOS.

                  Worth the 2k extra you'll need to spend for a Mac :-P :-P

                  C Offline
                  C Offline
                  Chris Kawa
                  Lifetime Qt Champion
                  wrote on 7 Jan 2024, 03:22 last edited by
                  #8

                  @Pl45m4 said:

                  Not that I know of.

                  Could you double check (Settings -> System -> Display)? It might be the default on your notebook. If the scaling is anything but 100% try to switch to 100 to see if that's the issue.

                  Were there any major changes to QtCreator menus lately?

                  Not to the menus that I know of (except adding some options), but to the DPI scaling, which would affect the sizes.
                  If you're above 100% scaling and want to stay that way see if changing the scale rounding settings in QtCreator helps: High DPI scaling.

                  P 1 Reply Last reply 7 Jan 2024, 12:12
                  1
                  • C Chris Kawa
                    7 Jan 2024, 03:22

                    @Pl45m4 said:

                    Not that I know of.

                    Could you double check (Settings -> System -> Display)? It might be the default on your notebook. If the scaling is anything but 100% try to switch to 100 to see if that's the issue.

                    Were there any major changes to QtCreator menus lately?

                    Not to the menus that I know of (except adding some options), but to the DPI scaling, which would affect the sizes.
                    If you're above 100% scaling and want to stay that way see if changing the scale rounding settings in QtCreator helps: High DPI scaling.

                    P Offline
                    P Offline
                    Pl45m4
                    wrote on 7 Jan 2024, 12:12 last edited by Pl45m4 1 Jul 2024, 12:15
                    #9

                    @Chris-Kawa said in ContextMenu QtCreator 12.0.1 way too big:

                    Could you double check (Settings -> System -> Display)? It might be the default on your notebook. If the scaling is anything but 100% try to switch to 100 to see if that's the issue.

                    Discovered that for whatever reason the default value and baseline of my system is a 125% scaling... wth?!

                    Never touched the settings.
                    Will see what I can do. Tweaking the DPI rounding made it worse. Any other setting than the default made the context menu cover even more... almost 100% of the screen.

                    but to the DPI scaling, which would affect the sizes.

                    and this will probably stay in, right? And not revert back to as it was in QtC 7 or 8?!

                    The "new" context menu looks a little bloated anyway :D

                    @Abderrahmene_Rayene would be nice to know what the root of your issue on Fedora is. Also scaling?!


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

                    ~E. W. Dijkstra

                    C C 2 Replies Last reply 7 Jan 2024, 12:35
                    0
                    • P Pl45m4 has marked this topic as solved on 7 Jan 2024, 12:15
                    • P Pl45m4
                      7 Jan 2024, 12:12

                      @Chris-Kawa said in ContextMenu QtCreator 12.0.1 way too big:

                      Could you double check (Settings -> System -> Display)? It might be the default on your notebook. If the scaling is anything but 100% try to switch to 100 to see if that's the issue.

                      Discovered that for whatever reason the default value and baseline of my system is a 125% scaling... wth?!

                      Never touched the settings.
                      Will see what I can do. Tweaking the DPI rounding made it worse. Any other setting than the default made the context menu cover even more... almost 100% of the screen.

                      but to the DPI scaling, which would affect the sizes.

                      and this will probably stay in, right? And not revert back to as it was in QtC 7 or 8?!

                      The "new" context menu looks a little bloated anyway :D

                      @Abderrahmene_Rayene would be nice to know what the root of your issue on Fedora is. Also scaling?!

                      C Offline
                      C Offline
                      Chris Kawa
                      Lifetime Qt Champion
                      wrote on 7 Jan 2024, 12:35 last edited by
                      #10

                      @Pl45m4 said:

                      Discovered that for whatever reason the default value and baseline of my system is a 125% scaling... wth?!

                      I'm more of a stationary user, so notebooks are not my cup of tea, but 125% scaling on a 1080p display means you're effectively getting just 864 unique pixels vertically, which is... not a whole lot in 2024. I would try to change it to 100% if it's still readable for you.

                      and this will probably stay in, right? And not revert back to as it was in QtC 7 or 8?!

                      Who knows? High DPI handling has been a mess since its inception in Windows (and Linux too from what I heard), especially on multi monitor setups. The API and supported features changes every few months in the OS itself and Qt tries to catch up to it with some inevitable lag. My prediction is it's going to change a bunch more times in the coming months (years?) until it reaches some sort of equilibrium that satisfies at least the majority of users.

                      The "new" context menu looks a little bloated anyway :D

                      I agree. It got pretty bloated. You can look through the bugtracker if the issue has been already reported or report it yourself.

                      1 Reply Last reply
                      3
                      • P Pl45m4
                        7 Jan 2024, 12:12

                        @Chris-Kawa said in ContextMenu QtCreator 12.0.1 way too big:

                        Could you double check (Settings -> System -> Display)? It might be the default on your notebook. If the scaling is anything but 100% try to switch to 100 to see if that's the issue.

                        Discovered that for whatever reason the default value and baseline of my system is a 125% scaling... wth?!

                        Never touched the settings.
                        Will see what I can do. Tweaking the DPI rounding made it worse. Any other setting than the default made the context menu cover even more... almost 100% of the screen.

                        but to the DPI scaling, which would affect the sizes.

                        and this will probably stay in, right? And not revert back to as it was in QtC 7 or 8?!

                        The "new" context menu looks a little bloated anyway :D

                        @Abderrahmene_Rayene would be nice to know what the root of your issue on Fedora is. Also scaling?!

                        C Offline
                        C Offline
                        CPPUIX
                        wrote on 7 Jan 2024, 14:55 last edited by
                        #11

                        @Pl45m4 said in ContextMenu QtCreator 12.0.1 way too big:

                        @Abderrahmene_Rayene would be nice to know what the root of your issue on Fedora is. Also scaling?!

                        I have an old Sony VAIO with this display info:

                        15.5 inch wide (WXGA: 1366 x 768) TFT colour display (VAIO Display, LED backlight)

                        The default scale on KDE is 100%, and it does not allow me to go lower. Increasing it does not cause a change.

                        I tried setting a lower scale using xrandr:

                        xrandr --output [my output name] --scale 1.5x1.5
                        

                        The context menu is still huge, but does not cover all the screen, but almost all of it:

                        qtcreatorwithShortcutsLOWSCALE.png

                        I like this comment on the answer suggesting changing the resolution on the question I linked:

                        This doesn't look like a valid workaround, especially for a development environment where different screen resolutions may be important for both testing and developing.

                        P 1 Reply Last reply 7 Jan 2024, 15:47
                        0
                        • C CPPUIX
                          7 Jan 2024, 14:55

                          @Pl45m4 said in ContextMenu QtCreator 12.0.1 way too big:

                          @Abderrahmene_Rayene would be nice to know what the root of your issue on Fedora is. Also scaling?!

                          I have an old Sony VAIO with this display info:

                          15.5 inch wide (WXGA: 1366 x 768) TFT colour display (VAIO Display, LED backlight)

                          The default scale on KDE is 100%, and it does not allow me to go lower. Increasing it does not cause a change.

                          I tried setting a lower scale using xrandr:

                          xrandr --output [my output name] --scale 1.5x1.5
                          

                          The context menu is still huge, but does not cover all the screen, but almost all of it:

                          qtcreatorwithShortcutsLOWSCALE.png

                          I like this comment on the answer suggesting changing the resolution on the question I linked:

                          This doesn't look like a valid workaround, especially for a development environment where different screen resolutions may be important for both testing and developing.

                          P Offline
                          P Offline
                          Pl45m4
                          wrote on 7 Jan 2024, 15:47 last edited by Pl45m4 1 Jul 2024, 15:52
                          #12

                          @Abderrahmene_Rayene said in ContextMenu QtCreator 12.0.1 way too big:

                          I like this comment on the answer suggesting changing the resolution on the question I linked:

                          I can't go higher than FullHD with 100%, since I can't add physical pixels to my screen :D
                          1366x768 on your side is even lower, so objects should appear larger by nature.
                          1920x1080 @125% equals usable 1536x864 pixels if @Chris-Kawa's calculation is correct.
                          Which is still slightly higher than the VAIO at 100% (and we both see the same result...)
                          Strange... since your context menu is even a bit smaller than mine at 125%, which shouldn't be the case, if the scaling of the context menu increases with available pixels.
                          Does playing around with the HighDPI rounding/scaling change anything for you? It made it worse for me...

                          Whatever :D
                          Since I use this computer mainly for coding, I will probably keep it at 100% and see what issues I have to face with other programs :o)

                          PS: I only use the context menu for two or three features... unfortunately not all are replaceable by shortcuts... F4 to switch between header and code file and some other features here and there... I like the refactoring and auto-create option for Setters/Getters and function bodies... no shortcuts for these tho...


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

                          ~E. W. Dijkstra

                          C 1 Reply Last reply 7 Jan 2024, 16:18
                          0
                          • P Pl45m4
                            7 Jan 2024, 15:47

                            @Abderrahmene_Rayene said in ContextMenu QtCreator 12.0.1 way too big:

                            I like this comment on the answer suggesting changing the resolution on the question I linked:

                            I can't go higher than FullHD with 100%, since I can't add physical pixels to my screen :D
                            1366x768 on your side is even lower, so objects should appear larger by nature.
                            1920x1080 @125% equals usable 1536x864 pixels if @Chris-Kawa's calculation is correct.
                            Which is still slightly higher than the VAIO at 100% (and we both see the same result...)
                            Strange... since your context menu is even a bit smaller than mine at 125%, which shouldn't be the case, if the scaling of the context menu increases with available pixels.
                            Does playing around with the HighDPI rounding/scaling change anything for you? It made it worse for me...

                            Whatever :D
                            Since I use this computer mainly for coding, I will probably keep it at 100% and see what issues I have to face with other programs :o)

                            PS: I only use the context menu for two or three features... unfortunately not all are replaceable by shortcuts... F4 to switch between header and code file and some other features here and there... I like the refactoring and auto-create option for Setters/Getters and function bodies... no shortcuts for these tho...

                            C Offline
                            C Offline
                            CPPUIX
                            wrote on 7 Jan 2024, 16:18 last edited by CPPUIX 1 Jul 2024, 16:28
                            #13

                            @Pl45m4 said in ContextMenu QtCreator 12.0.1 way too big:

                            Does playing around with the HighDPI rounding/scaling change anything for you?

                            It made no change on my side.

                            @Pl45m4 said in ContextMenu QtCreator 12.0.1 way too big:

                            I like the refactoring and auto-create option for Setters/Getters and function bodies... no shortcuts for these tho...

                            Good news, then, I hope. See Auto-generate setters/getters with Qt Creator.

                            Basically, click on a member, then press ALT+Enter.
                            I tried it now, and it works nicely! One less reason for me to use the context menu.

                            @Pl45m4 said in ContextMenu QtCreator 12.0.1 way too big:

                            and if you are not careful, you left-click somewhere to make the menu go away and by doing it, you activate some random menu option

                            Oh, and I forgot to mention, you can just press Escape/Esc on your keyboard to make the context menu go away.

                            And perhaps, the context menu could use some refactoring, sub menus instead of separators, and scrolling instead of "dual page mode".

                            1 Reply Last reply
                            1
                            • C Offline
                              C Offline
                              CPPUIX
                              wrote on 25 Jan 2024, 13:21 last edited by CPPUIX
                              #14

                              New discovery, if it is helpful to future readers:

                              Changing the font size/type causes a change.

                              In my case, I had Kawkab Mono size 10, which is bigger than the default KDE font, Noto Sans, same size, because the latter does not reproduce the issue.

                              I lowered the size of my font, and 7 is the highest value I could use to get a small context menu, and that is using a 1920x1080 resolution, 100% scale.

                              To confirm, I changed the resolution to one that is close to what I had on my old laptop, 1368x768, and I was able to get a small context menu with 4 as the system's font size, Kawkab Mono again (because it is the best I could find, that keeps Arabic letters mono as well in Qt Creator's text editor).

                              So, lower the system font size, if your eyes can tolerate that. Or just use shortcuts.

                              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