Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
5.1.1, 5.2.0 Beta1
-
None
-
Qt 5.1.1 and Qt 5.2-beta1 on Desktop Linux and Android using QQuick 2.0
Description
I've created a sub class of QQuickView that overrides mousePressEvent() like this:
void CustomViewer::mousePressEvent(QMouseEvent *event)
{
qDebug() << "MousePress:" << event;
QQuickView::mousePressEvent(event);
emit interaction();
}
If run on the desktop my custom mousePressEvent() method is called whenever the mouse is pressed by the user. No matter if the user clicks inside a QQuick MouseArea or outside of it.
But if the code is run on Android, the mousePressEvent() method is only called if the user taps outside a MouseArea. If the user taps inside a MouseArea or a ListView, the method is not called at all.
Update: I see the same behavior with mouseMoveEvent() and mouseReleaseEvent(). Also touchEvent() is never called, but I think this is intentional.