Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt.OpenHandCursor and Qt.ClosedHandCursor Look The Same?

Qt.OpenHandCursor and Qt.ClosedHandCursor Look The Same?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 670 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
    Jhorns2
    wrote on last edited by
    #1

    I'm changing cursorshape in a MouseArea based on mouse button press. If I use either OpenHandCursor or ClosedHandCursor and something completely different such as SplitVCursor I get the visual behavior I expect (the cursor changes).

    If I use OpenHandCursor and ClosedHandCursor, the cursor never changes.

    TLDR: OpenHandCursor and ClosedHandCursor appear to be identical. I would say they both appear to be a "closed hand".

    I am using Qt 6, but do not know if this is only a Qt 6 issue, so I put it in this forum.

    Can anyone confirm they see the same thing?

    eyllanescE 1 Reply Last reply
    0
    • J Jhorns2

      I'm changing cursorshape in a MouseArea based on mouse button press. If I use either OpenHandCursor or ClosedHandCursor and something completely different such as SplitVCursor I get the visual behavior I expect (the cursor changes).

      If I use OpenHandCursor and ClosedHandCursor, the cursor never changes.

      TLDR: OpenHandCursor and ClosedHandCursor appear to be identical. I would say they both appear to be a "closed hand".

      I am using Qt 6, but do not know if this is only a Qt 6 issue, so I put it in this forum.

      Can anyone confirm they see the same thing?

      eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by
      #2

      @Jhorns2 please provide a minimal reproducible example

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jhorns2
        wrote on last edited by
        #3
        // These icons are different
        MouseArea {
                        acceptedButtons: Qt.LeftButton | Qt.RightButton
                        anchors.fill: parent
                        preventStealing: true
                        cursorShape: pressedButtons & Qt.RightButton  ? Qt.ClosedHandCursor : Qt.ForbiddenCursor
        }         
        
        // The icon is the same pressed or released.  Given the behavior above, this can only mean the two icons are identical when they should not be.
        MouseArea {
                        acceptedButtons: Qt.LeftButton | Qt.RightButton
                        anchors.fill: parent
                        preventStealing: true
                        cursorShape: pressedButtons & Qt.RightButton  ? Qt.ClosedHandCursor : Qt.OpenHandCursor
        }
        
        1 Reply Last reply
        0

        • Login

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