-
Notifications
You must be signed in to change notification settings - Fork 30
Remove high dpi scaling option with Qt6 #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
932a006
to
0c77b87
Compare
This removes the --scale command line option. Qt6 seems to have this already integrated to scale according to the nativ display settings: https://doc.qt.io/qt-6.8/highdpi.html Adjusting the scale on a per-application basis is not intended (anymore) according to the documentation. Tested on a (near) high-dpi screen.
0c77b87
to
ea0dc3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes high DPI scaling functionality from the codebase, as Qt6 now handles high DPI scaling automatically according to native display settings. The PR eliminates the manual --scale command line option and related scaling components that are no longer needed.
Key changes:
- Removed scale screen factor component and related UI elements
- Eliminated high DPI scaling methods and command line options
- Updated Qt API usage to align with Qt6 standards (deprecated method replacements)
Reviewed Changes
Copilot reviewed 61 out of 61 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
src/gui/components/scalescreenfactor.* | Completely removed scale screen factor component files |
src/swiftlauncher/swiftlauncher.* | Removed scale factor UI component and related functionality |
src/gui/guiapplication.* | Removed high DPI scaling methods and command line options |
src/misc/variant.* | Updated Qt API calls to use Qt6-compatible methods |
samples/*/main.cpp | Removed high DPI scaling initialization calls |
Multiple test files | Updated deprecated Qt datetime methods to use QTimeZone::utc() |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This removes the --scale command line option.
Qt6 seems to have this already integrated to scale according to the native display settings: https://doc.qt.io/qt-6.8/highdpi.html
Adjusting the scale on a per-application basis is not intended (anymore) according to the documentation. Tested on a (near) high-dpi screen.