i compiled and installed the ImageGestures project on my noki 5800 phone. But when i swipe nothing happens. no event is triggered. why???![]()
i compiled and installed the ImageGestures project on my noki 5800 phone. But when i swipe nothing happens. no event is triggered. why???![]()
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