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. PressDelay on QML Flickable doesn't work
Qt 6.11 is out! See what's new in the release blog

PressDelay on QML Flickable doesn't work

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 2.0k 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.
  • A Offline
    A Offline
    aabc
    wrote on last edited by
    #1

    I try to use pressDelay on QML Flickable but for some reason it doesn't work.
    Has anyone try it ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MartinJ
      wrote on last edited by
      #2

      This works for me, both QtQuick 1 and 2:
      @
      Flickable {
      id: root
      width: 200; height: 200
      contentHeight: 600
      pressDelay: 500
      Rectangle {
      width: 50; height: 50
      color: ma.pressed ? "blue" : "green"
      MouseArea {
      id: ma
      anchors.fill: parent
      }
      }
      }
      @

      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