PDA

View Full Version : Long touch



flambert
4th March 2015, 08:08
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

wysota
4th March 2015, 08:12
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.