Results 1 to 2 of 2

Thread: Long touch

  1. #1
    Join Date
    Jan 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Long touch

    Hello,

    If I touch long enough on the screen of my surface pro, there appears and disappears a grey square. I would like to use such an event for my QGraphicsscene. I would like to program like this: If I touch "long" on a specific scene item I can drag and drop it. Is this possible. I have no idea what could be the name of the event I'm looking for.

    Thanks and regards,
    flambert

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Long touch

    In QtQuick it's tapAndHold. I don't think there is a direct equivalent in the widget world but you can implement it yourself using a timer.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. touch and multi touch feature
    By Vishal@05 in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 26th March 2014, 09:06
  2. Touch screen wrong coordinates on touch
    By Talei in forum Qt Programming
    Replies: 0
    Last Post: 1st January 2014, 22:35
  3. It was a long journey
    By zlatko in forum General Discussion
    Replies: 0
    Last Post: 9th January 2013, 22:11
  4. qDebug() and long long int on WIN
    By iw2lsi in forum Qt Programming
    Replies: 3
    Last Post: 21st March 2012, 05:47
  5. Replies: 1
    Last Post: 25th March 2011, 11:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.