Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ltoenning
Copy link
Contributor

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.

@ltoenning ltoenning requested a review from Copilot July 20, 2025 21:50
@ltoenning ltoenning self-assigned this Jul 20, 2025
Copy link

@Copilot Copilot AI left a 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 Qt-specific high DPI scaling functionality to align with Qt6's built-in automatic DPI scaling. Qt6 natively handles high DPI scaling based on system display settings, making manual per-application scaling adjustments unnecessary.

  • Removes the --scale command line option and related parsing logic
  • Eliminates high DPI support methods from CGuiApplication and CGuiUtility classes
  • Updates metrics info display format to remove high DPI status indication

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/swiftguistandard/main.cpp Removes high DPI screen support initialization call
src/swiftdata/main.cpp Removes high DPI screen support initialization call
src/swiftcore/main.cpp Removes high DPI screen support initialization call
src/gui/guiutility.h Removes high DPI support status method declaration
src/gui/guiutility.cpp Removes high DPI support method and updates metrics info format
src/gui/guiapplication.h Removes scale-related command line options and high DPI methods
src/gui/guiapplication.cpp Removes implementation of high DPI support and scale factor parsing
samples/hotkey/main.cpp Removes high DPI screen support initialization call
.github/workflows/build.yml Changes archive format from .7z to .zip (unrelated to high DPI changes)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant