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

Qt.SizeAllCursor is not correct in QtQuick

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes