You're right to suspect UI scaling is the issue with oversized menus and toolbar buttons in Qt apps on Windows 10! Here's how to disable or adjust it, with several methods, ranging from the simplest to more advanced:
1. Compatibility Settings (Recommended)
This is the most reliable and generally preferred method:
Locate the QOwnNotes executable: Usually found in C:\Program Files\QOwnNotes\QOwnNotes.exe.
Right-click the executable and select "Properties".
Go to the "Compatibility" tab.
Click "Change high DPI settings".
Check the box "Override high DPI scaling behavior."
In the dropdown menu below, select "Application". (This tells the app to handle scaling itself, often resulting in sharper visuals.)
Click "OK" on both windows to save the changes.
Restart QOwnNotes.
This method forces the application to ignore the system's DPI scaling and render at its native resolution.
2. Manifest File (Advanced - Requires Editing)
This is a more involved method, but can be useful if the compatibility settings don't work. It involves modifying the application's manifest file. Back up the manifest file before editing!
Locate the manifest file: It's usually named QOwnNotes.exe.manifest and is in the same directory as the executable.
Open the manifest file in a text editor (like Notepad). You'll need administrator privileges to save changes.
Find the <dpiAwareness> tag. It might look like this:
false: Disables DPI awareness, letting Windows scale the app. May result in blurry visuals.
PER_MONITOR_AWARE: Allows the app to scale differently on each monitor.
3. Qt Configuration File (Less Reliable)
Some Qt applications read a configuration file that can control DPI scaling. This is less common and might not work for QOwnNotes.
Locate the Qt configuration file: It's often in your user's application data directory: %APPDATA%\QOwnNotes\Qt\. (Type this into the Windows Explorer address bar.)
Look for a file named Qt.conf or similar.
Open the file in a text editor.
Add or modify the following line:
code
[Qt]
DpiScale=1.0
Save the file.
Restart QOwnNotes.
4. System-Wide DPI Scaling (Not Recommended)
You could lower the overall DPI scaling for your entire system, but this will affect all applications, not just QOwnNotes. This is generally not a good solution.
Settings → System → Display → Scale and layout. Reduce the scaling percentage.
Troubleshooting
Restart is crucial: Always restart the application after making changes.
Administrator privileges: You may need administrator privileges to modify the manifest file or compatibility settings.
Conflicting settings: If you've tried multiple methods, they might conflict. Start with the Compatibility Settings and only try other methods if that doesn't work.
QOwnNotes specific settings: Check within QOwnNotes' settings if there are any options related to UI scaling or font size.
Start with the Compatibility Settings (Method 1). It's the easiest and most likely to fix the problem without causing other issues. If that doesn't work, move on to the Manifest File (Method 2), but be careful when editing it.