Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132709

setOverrideCursor gives incorrect cursor size on high-dpi display with 2 screens

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.3
    • GUI: High-DPI
    • None
    • Screen 1:  4k, 150% scaling
      Screen 2:  2560 x 1440, 100% scaling

      Windows 10 and 11
      MSVC and MinGW
    • Windows

    Description

      Calling setOverrideCursor with several of the built in Qt cursors results in improperly scaled cursors on high-dpi display (or any screen set with scale factor > 100%).  This only happens when there are 2 screens with mixed scale factors. It does not seem to happen on a single high-dpi display.  This also does not happen when setting cursor via QWidget::setCursor.

      The affected cursors are:

      • Qt::SplitVCursor
      • Qt::SplitHCursor
      • Qt::OpenHandCursor
      • Qt::ClosedHandCursor
      • Qt::DragMoveCursor
      • Qt::DragCopyCursor
      • Qt::DragLinkCursor

      I've attached a stand-alone application to reproduce and a short video clip showing the problem.

      Attachments

        1. cursor_size.gif
          cursor_size.gif
          68 kB
        2. cursorsize.zip
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            jim.albamont James Albamont
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes