Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved HiDPI Display of Checkboxes

    General and Desktop
    hidpi high dpi windows10
    2
    3
    1187
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • James.Emerton
      James.Emerton last edited by

      I am currently in the process of porting a PyQt application to Qt and enabling HiDPI support. I've set Qt.AA_EnableHighDpiScaling and almost everything displays correctly, except for checkboxes.

      I came across https://bugreports.qt.io/browse/QTBUG-44478 which appears to indicate that this problem exists in the base QWindowsStyle but I am also seeing the same behavior on Windows 10 using the QWindowsVistaStyle.

      Is anyone else experiencing this issue?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        You might want to check this submission and build a custom version of the plugin with this applied.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • James.Emerton
          James.Emerton last edited by

          I did some exploratory debugging and found that (on Windows 10) QWindowsStyle::drawPrimitive() is not being called to render checkboxes, but rather they are being drawn with DrawThemeBackgroundEx() from uxstyle.dll (which I would have expected to support High DPI correctly.)

          After looking at the screen shots attached to the ticket referenced above I discovered that I have a different sort of drawing problem; checkboxes are being render correctly, but at the same size (13px) regardless of device scaling.

          On Windows 7 checkboxes appear to render correctly with device scaling enabled.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post