Results 1 to 1 of 1

Thread: QGestureEvent TapGesture not working on Maemo or S60 emulator ???

  1. #1
    Join Date
    Aug 2011
    Location
    India
    Posts
    7
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Lightbulb QGestureEvent TapGesture not working on Maemo or S60 emulator ???

    Friends,

    I have directed my mobile app to accept the following Gestures
    Qt Code:
    1. grabGesture(Qt::TapGesture);
    2. grabGesture(Qt::TapAndHoldGesture);
    3. grabGesture(Qt::PanGesture);
    To copy to clipboard, switch view to plain text mode 

    and I am handling the gestures as follows...


    Qt Code:
    1. bool client::event(QEvent *event)
    2. {
    3. if (event->type() == QEvent::Gesture)
    4. gestureEvent(static_cast<QGestureEvent*>(event));
    5. else
    6. QWidget::event(event);
    7. }
    8.  
    9. void client::gestureEvent(QGestureEvent *event)
    10. {
    11. if(event->gesture(Qt::TapGesture))
    12. {
    13. ui->statusBox->appendPlainText("Tap");
    14. }
    15. else if(event->gesture(Qt::TapAndHoldGesture))
    16. {
    17. ui->statusBox->appendPlainText("Tap and Hold");
    18. }
    19. else if(event->gesture(Qt::PanGesture))
    20. {
    21. ui->statusBox->appendPlainText("Pan Gesture");
    22. }
    23. else
    24. ui->statusBox->appendPlainText("Some Gesture");
    25.  
    26. }
    To copy to clipboard, switch view to plain text mode 

    so I am just printing the Gesture Name in a textbox...but out of the three gestures on TapAndHold gesture is working, the other two are not working on the Maemo Fermantle or S^3 simulator...pls help

  2. The following user says thank you to anjanu for this useful post:

    magnetron (26th June 2018)

Similar Threads

  1. Maemo Emulator
    By Archa4 in forum Newbie
    Replies: 1
    Last Post: 21st March 2011, 07:25
  2. Replies: 1
    Last Post: 6th February 2010, 09:54

Tags for this Thread

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.