Small visual glitches on High DPI display on Windows with Fusion style #16393

Open
opened 2026-02-22 03:04:51 -05:00 by deekerman · 10 comments
Owner

Originally created by @zenden2k on GitHub (Nov 25, 2024).

qBittorrent & operating system versions

qBittorrent: 5.0.2 x64
Operating system: Windows 11 Home SL x64 (24H2) 26100.2314
Qt: 6.7.3

What is the problem?

Some UI controls in the main window have no borders and dropdown menus have a double border.
The borders flicker when resizing.

Steps to reproduce

  1. Set display scaling 125 %
  2. The Fusion style must be selected in qBittorrent settings.
  3. Launch qBittorent

Additional context

qbittorent_bug_2

Possible solution:

Set environment variable QT_SCALE_FACTOR_ROUNDING_POLICY=Round

qbittorrent_good

Log(s) & preferences file(s)

qBittorrent.txt

Originally created by @zenden2k on GitHub (Nov 25, 2024). ### qBittorrent & operating system versions qBittorrent: 5.0.2 x64 Operating system: Windows 11 Home SL x64 (24H2) 26100.2314 Qt: 6.7.3 ### What is the problem? Some UI controls in the main window have no borders and dropdown menus have a double border. The borders flicker when resizing. ### Steps to reproduce 1. Set display scaling 125 % 2. The Fusion style must be selected in qBittorrent settings. 3. Launch qBittorent ### Additional context ![qbittorent_bug_2](https://github.com/user-attachments/assets/7dab094d-e977-44ae-89d4-a87020c0d1e0) Possible solution: Set environment variable `QT_SCALE_FACTOR_ROUNDING_POLICY=Round` ![qbittorrent_good](https://github.com/user-attachments/assets/9137028d-ff8e-49cc-8542-13691a9830bb) ### Log(s) & preferences file(s) [qBittorrent.txt](https://github.com/user-attachments/files/17901475/qBittorrent.txt)
Author
Owner

@sledgehammer999 commented on GitHub (Nov 27, 2024):

Why don't you switch to the "system" style?
Also QT_SCALE_FACTOR_ROUNDING_POLICY=Round with a 1.25x scaling results in no scaling at all. Aka 1.0x scaling.

Lastly, if this is indeed a visual bug, then it is a Qt bug. Nothing we can do about it.

@sledgehammer999 commented on GitHub (Nov 27, 2024): Why don't you switch to the "system" style? Also `QT_SCALE_FACTOR_ROUNDING_POLICY=Round` with a 1.25x scaling results in no scaling at all. Aka 1.0x scaling. Lastly, if this is indeed a visual bug, then it is a Qt bug. Nothing we can do about it.
Author
Owner

@zenden2k commented on GitHub (Mar 17, 2025):

Why don't you switch to the "system" style?

I find the Fusion style more attractive.
The developers themselves recommend using the Fusion style on Windows.

Image

The only QT_SCALE_FACTOR_ROUNDING_POLICY values that make qBittorrent not look awful are 'Round' and 'Floor'.

Also QT_SCALE_FACTOR_ROUNDING_POLICY=Round with a 1.25x scaling results in no scaling at all. Aka 1.0x scaling.

I think this is not true. The qBittorrent interface still looks larger than without scaling.

100% scaling
100% scaling

125% scaling (with QT_SCALE_FACTOR_ROUNDING_POLICY=Round)
125% scaling

150% scaling (with QT_SCALE_FACTOR_ROUNDING_POLICY=Round)
Image

Lastly, if this is indeed a visual bug, then it is a Qt bug. Nothing we can do about it.

You can call https://doc.qt.io/qt-6/qguiapplication.html#setHighDpiScaleFactorRoundingPolicy function to change the behavior.

@zenden2k commented on GitHub (Mar 17, 2025): > Why don't you switch to the "system" style? I find the Fusion style more attractive. The developers themselves recommend using the Fusion style on Windows. ![Image](https://github.com/user-attachments/assets/a784af3a-41e2-4132-b967-f19019206233) The only [QT_SCALE_FACTOR_ROUNDING_POLICY values](https://doc.qt.io/qt-6/qt.html#HighDpiScaleFactorRoundingPolicy-enum) that make qBittorrent not look awful are 'Round' and 'Floor'. > Also QT_SCALE_FACTOR_ROUNDING_POLICY=Round with a 1.25x scaling results in no scaling at all. Aka 1.0x scaling. I think this is not true. The qBittorrent interface still looks larger than without scaling. 100% scaling ![100% scaling](https://github.com/user-attachments/assets/75d2f8ac-3983-4140-ae5d-a7214e97da1f) 125% scaling (with QT_SCALE_FACTOR_ROUNDING_POLICY=Round) ![125% scaling](https://github.com/user-attachments/assets/c7965799-46fc-4fe3-b1c4-ec6c05558628) 150% scaling (with QT_SCALE_FACTOR_ROUNDING_POLICY=Round) <img width="685" alt="Image" src="https://github.com/user-attachments/assets/0a8d1113-1710-4a10-b1fb-f8beb3068d1a" /> > Lastly, if this is indeed a visual bug, then it is a Qt bug. Nothing we can do about it. You can call https://doc.qt.io/qt-6/qguiapplication.html#setHighDpiScaleFactorRoundingPolicy function to change the behavior.
Author
Owner

@xavier2k6 commented on GitHub (May 12, 2025):

We had done below up until 5.0.0 release:

github.com/qbittorrent/qBittorrent@91943e4815/src/app/main.cpp (L115-L122)

@xavier2k6 commented on GitHub (May 12, 2025): We had done below up until 5.0.0 release: https://github.com/qbittorrent/qBittorrent/blob/91943e4815ae40a273b39432340357a4ce879f3b/src/app/main.cpp#L115-L122
Author
Owner

@xavier2k6 commented on GitHub (Jun 9, 2025):

@zenden2k How does qbittorrent 5.1.0 behave? & is it just the fusion style that has this behavior?

@xavier2k6 commented on GitHub (Jun 9, 2025): @zenden2k How does qbittorrent 5.1.0 behave? & is it just the `fusion` style that has this behavior?
Author
Owner

@zenden2k commented on GitHub (Jun 9, 2025):

The issue still exists in version 5.1.0.
It only affects the Fusion style.

@zenden2k commented on GitHub (Jun 9, 2025): The issue still exists in version 5.1.0. It only affects the Fusion style.
Author
Owner

@xavier2k6 commented on GitHub (Jul 22, 2025):

@zenden2k Please test qBittorrent 5.1.2 -> https://sourceforge.net/projects/qbittorrent/files/qbittorrent-win32/qbittorrent-5.1.2/

@xavier2k6 commented on GitHub (Jul 22, 2025): @zenden2k Please test qBittorrent 5.1.2 -> https://sourceforge.net/projects/qbittorrent/files/qbittorrent-win32/qbittorrent-5.1.2/
Author
Owner

@zenden2k commented on GitHub (Jul 22, 2025):

@xavier2k6

Pop-up menus have started to look better, but in the main program window some borders are not rendered (including scrollbars).

Image
@zenden2k commented on GitHub (Jul 22, 2025): @xavier2k6 Pop-up menus have started to look better, but in the main program window some borders are not rendered (including scrollbars). <img width="1997" height="1302" alt="Image" src="https://github.com/user-attachments/assets/8ed293a5-c004-4591-943c-c99333a84f83" />
Author
Owner

@xavier2k6 commented on GitHub (Jul 22, 2025):

There were a few fixes related to Fusion style in newer Qt releases & some more to be officially released.....so will expect these kind of issues to get less & less.

@xavier2k6 commented on GitHub (Jul 22, 2025): There were a few fixes related to Fusion style in newer Qt releases & some more to be officially released.....so will expect these kind of issues to get less & less.
Author
Owner

@qBittUser commented on GitHub (Nov 17, 2025):

@zenden2k

Any improvement with v5.1.3?

@qBittUser commented on GitHub (Nov 17, 2025): @zenden2k Any improvement with v5.1.3?
Author
Owner

@zenden2k commented on GitHub (Nov 20, 2025):

v5.1.4, still the same

@zenden2k commented on GitHub (Nov 20, 2025): v5.1.4, still the same
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#16393
No description provided.