Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. HiDPI Display of Checkboxes
Forum Updated to NodeBB v4.3 + New Features

HiDPI Display of Checkboxes

Scheduled Pinned Locked Moved Unsolved General and Desktop
hidpihigh dpiwindows10
3 Posts 2 Posters 1.7k Views 2 Watching
  • 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.EmertonJ Offline
    James.EmertonJ Offline
    James.Emerton
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • James.EmertonJ Offline
        James.EmertonJ Offline
        James.Emerton
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved