Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.13.1
-
None
-
Ubuntu 16.04
Qt 5.13.1 android armeabi_v7a Clang
Android SDK 28
Android NDK 20
OpenJDK 8
Qt Creator 4.10.0
Description
When having a MouseArea with hoverEnabled property set to true like:
MouseArea {
onClicked: {
...
}
hoverEnabled: true
}
and installing an event filter to qApp like:
bool MyObject::eventFilter(QObject*, QEvent* event) { if (dynamic_cast<QMouseEvent*>(event)) { qDebug() << dynamic_cast<QMouseEvent*>(event)->source(); } return false; }
tapping on the mouse area on android shows an event of type QEvent::MouseMove
with Qt::MouseEventNotSynthesized as the source which is wrong as it's synthesized with touch screen.
I have also set Qt::AA_SynthesizeTouchForUnhandledMouseEvents before creating QApplication but it acts the same.