Qt World Summit: Submit your Presentation

QScroller vs mouseReleaseEvent, quite trigger happy

  • Hi,

    i am making an mobile app that has a QScrollArea where i enable finger swipe scrolling like this:

    QScroller::grabGesture(ui->scrollArea, QScroller::LeftMouseButtonGesture);

    Within this Scrollarea there are Widgets that so stuff when their mouseReleaseEvent is triggered.

    The scroll area is quite big, so there is quite some way you can scroll... If i now scroll with the finger, everything is as i want it: Even if i start the swipe over one of the objects reacting to the mouseReleaseEvent, the objects itself do not receive the mouseReleaseEvent.

    But once the scrolling startet occasionally any further swipe triggers a mouseReleaseEvent on the widgets in the ScrollArea.

    Is there any way to prevent this? Is it a Qt bug that will be fixed? Or do i have to reimplement QScroller myself?

    Kind regards,

Log in to reply