Skip to content

[Bug]: Do not support fractional scaling for high-DPI monitors #4013

@BH2WFR

Description

@BH2WFR

What did you do?

The GUI do not supports fractional scaling, like 150%.

fractional scaling support is available since Qt5.14,needs these codes in main function (since Qt6, codes below is not required):

    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);  
    
// fractional scaling support since Qt5.14 (needn't invoke this since Qt6)
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
    

What did you expect to see?

The Application displays properly in 150% scaling monitor, and auto re-scale when I drag it to another monitor with different scaling.

What did you see instead?

Image

DB4S Version

3.13.1

What OS are you seeing the problem on?

Windows

OS version

Windows 11

Relevant log output

Prevention against duplicate issues

  • I have searched for similar issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions