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

Qt.SizeAllCursor is not correct in QtQuick

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • None
    • 6.2, 6.6.1, dev
    • QPA: X11/XCB
    • None
    • Linux/Wayland, Linux/X11

      When setting the cursorShape of MouseArea to Qt.SizeAllCursor, the observed cursor differs from the the documentation.

      Instead of the anticipated Qt.SizeAllCursor, it seems to resemble the Qt.ClosedHandCursor.

      The comprehensive project is included in the attachment. This discrepancy is evident on Ubuntu/X11 and Ubuntu/Wayland, but functions as expected on the Windows platform.

      import QtQuick
      import QtQuick.Controls
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")    
          MouseArea {
              anchors.fill: parent
              cursorShape: Qt.SizeAllCursor
          }
      }
       

      The screenshot of the program is as follows.

        1. 52.gif
          0.1 kB
          Liang Qi
        2. cursorShape_issue.zip
          3 kB
          yi wang
        3. image-2024-01-04-09-45-07-302.png
          28 kB
          yi wang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            liaqi Liang Qi
            warindy yi wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes