Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MultiPointsTouchArea on Windows 7 not capturing "Pressed"
Forum Updated to NodeBB v4.3 + New Features

MultiPointsTouchArea on Windows 7 not capturing "Pressed"

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.1k Views 1 Watching
  • 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.
  • T Offline
    T Offline
    theoribeiro
    wrote on last edited by
    #1

    Hello dear forumers,

    I'm trying to set up a button in QML which reacts as a user presses it, as almost every touch application should do. However, when I press my finger over the button the onPressed slot is only called after I move my finger. Just as if the touch point is only being added by Qt if I move my finger while pressed.

    This is the test code:
    @ MultiPointTouchArea {
    id: mousearea
    anchors.fill: parent

        onReleased: {
            container.clicked()
        }
    
        onPressed: {
            console.log("PRESSED!!!")
        }
    
    }@
    

    This snippet only outputs PRESSED if either I move my finger or release it. The onRelease slot works correctly.
    Is this normal behaviour?

    If I use Microsoft Surface Input Visualizer, provided with Microsoft Surface SDK 2.0, I can see the touch point being created when I press the screen, even if I don't move my finger!
    If you'd like to test this and doesn't have a touch screen device at your reach, I suggest using Microsoft's Surface Input Simulator, also provided with the Surface SDK, which generates windows touch events for you.

    Best regards, hope anyone can help.

    Theo

    1 Reply Last reply
    0
    • T Offline
      T Offline
      theoribeiro
      wrote on last edited by
      #2

      Unsurprisingly, this works on Windows 8 as it should.

      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