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
QtWS25 Last Chance

HiDPI Display of Checkboxes

Scheduled Pinned Locked Moved Unsolved General and Desktop
hidpihigh dpiwindows10
3 Posts 2 Posters 1.6k Views
  • 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.
  • J Offline
    J Offline
    James.Emerton
    wrote on 15 Jan 2018, 20:51 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Jan 2018, 21:13 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
      • J Offline
        J Offline
        James.Emerton
        wrote on 18 Jan 2018, 22:58 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

        1/3

        15 Jan 2018, 20:51

        • Login

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