×

Discussion Board

Results 1 to 2 of 2

Thread: Gestures

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    6

    Gestures

    i compiled and installed the ImageGestures project on my noki 5800 phone. But when i swipe nothing happens. no event is triggered. why???

  2. #2
    Registered User
    Join Date
    Dec 2009
    Posts
    6

    Re: Gestures

    i managed to implement the swipe gesture with mousePressEvent and mouseMoveEvent

    void mousePressEvent( QMouseEvent *pEvent )
    {
    m_X0 = pEvent->x();
    m_Y0 = pEvent->y();
    }



    void mouseMoveEvent( QMouseEvent *pEvent )
    {
    if ( pEvent->x() - m_X0 > 150 )
    // Swipe Right
    if ( pEvent->x() - m_X0 < -150 )
    //Swipe Left
    }

    150 and -150 -> you can change these values

    By changing these values you adjust the swipe sensibility

Similar Threads

  1. Help with Touch Gestures, convert to key strokes?
    By dj_aj in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2009-08-23, 03:02
  2. Handling telephone call with gestures
    By djsid in forum Symbian
    Replies: 12
    Last Post: 2008-10-07, 15:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •