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. long press sometimes will be recognized as a short press in listview
QtWS25 Last Chance

long press sometimes will be recognized as a short press in listview

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 341 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.
  • A Offline
    A Offline
    alandale
    wrote on last edited by
    #1

    Hi, I am using QGuiApplication with a ListView. The end user of the application feels that the long press sometimes is recognized as a short pressed. How can I make the long pressed time be longer?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Its unclear in what context this is but maybe you can use
      http://doc.qt.io/qt-5/qtapandholdgesture.html#details
      with
      void QTapAndHoldGesture::setTimeout(int msecs)

      The default value is 700 milliseconds.

      1 Reply Last reply
      1

      • Login

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