Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

what is way to catch touch event on QScroller::LeftMouseButtonGesture ?



  • i have seen that i can catch below event on left mouse button click but i want to update it
    for catch swipe event inside scroller area like in how we scroll image mobile to see list of image. i have used QScroller::LeftMouseButtonGesture.

    what extra thing i need to do to achieve that event.

    void FileManager::mouseReleaseEvent(QMouseEvent *me)
    {
        qDebug()<< "Gesture"<<me->type();
    
        if( me->type() == QEvent::MouseButtonRelease)
        {
            if(Imagecount>0)
            {
                if( u8RowIndex < MaxPossibleRow)
                {
                        qDebug()<< "Gesture"<<me->type();
                        DisplayImageList();
                }
            }
        }
    }
    

Log in to reply