ContextMenu QtCreator 12.0.1 way too big
-
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)
Is it my system? Anyone has seen this before? I dont think it should be this huge, right?
-
Hi,
That looks pretty big indeed !
On which OS does it happen ? -
@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?
-
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...".
With shortcuts:
Without shortcuts:
Someone asked about it on SO a while ago:
-
Strange, I can't reproduce that on macOS.
-
@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
-
@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. -
@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?!
-
-
@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.
-
@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:
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.
-
@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... -
@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".
-
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.