Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. what is way to catch touch event on QScroller::LeftMouseButtonGesture ?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 171 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by Qt embedded developer
    #1

    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();
                }
            }
        }
    }
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved