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

Qt.OpenHandCursor shape is no longer available in 5.12.3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.3
    • None
    • Ubuntu 18.04.3 (GNOME)
    • Linux/X11

    Description

      In 5.12.3 (earliest version I've tested, might be earlier), the following code only ever shows Qt.ClosedHandCursor. If you hard-code it to use Qt.OpenHandCursor, it will still use Qt.CloseHandCursor. It worked in 5.9.5.

      import QtQuick 2.0
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          id: window
          width: 480
          height: 640
          visible: true
      
          MouseArea {
              id: mouseArea
              anchors.fill: parent
              anchors.bottomMargin: parent.height / 2
              cursorShape: pressed ? Qt.ClosedHandCursor : Qt.OpenHandCursor
          }
      }
      

      With a widgets example in Qt 5.9.5, here's the regular arrow cursor (I'm using 200% system scaling because the monitor is 4K):

      Here's the open cursor:

      Here's the closed cursor:

      So while they are too small for some reason, they are there at least.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mitch_curtis Mitch Curtis
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes