Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.9.0
-
None
-
ANDROID_ABI: arm64-v8a
ANDROID_NDK: 26.1.10909125
ANDROID_PLATFORM: android-23
CMAKE_CXX_FLAGS_INIT: -DQT_QML_DEBUG
PlatformGraphics_DIR: PlatformGraphics_DIR-NOTFOUND
Android Compilation Tools: 36.0.0
Android Compilation SDK: android-36
Tested on Smartphone: Galaxy A15 5G, Version One UI 6.1, Version Android 14
Tested on Android Studio with Pixel 8a from Google Play Store Image (Intel x86_64 Atom): API 36.0 "Baklava"; Android 16.0ANDROID_ABI: arm64-v8a ANDROID_NDK: 26.1.10909125 ANDROID_PLATFORM: android-23 CMAKE_CXX_FLAGS_INIT: -DQT_QML_DEBUG PlatformGraphics_DIR: PlatformGraphics_DIR-NOTFOUND Android Compilation Tools: 36.0.0 Android Compilation SDK: android-36 Tested on Smartphone: Galaxy A15 5G, Version One UI 6.1, Version Android 14 Tested on Android Studio with Pixel 8a from Google Play Store Image (Intel x86_64 Atom): API 36.0 "Baklava"; Android 16.0
Description
Hi,
when setting a custom default font family and size, the generated QMessageBox doesn't respond to touch to close it.
Touch part seems to be functionnal :
I/InputDispatcher( 1407): Delivering touch to : action: 0x0, f=0x0, d=0, '3ddb553', t=1 I/ViewRootImpl@1335bc4[QtActivity]: ViewPostIme pointer 0 I/GestureDetector: obtain mCurrentDownEvent. id: 430723635 caller: org.qtproject.qt.android.QtWindow.onTouchEvent:146 android.view.View.dispatchTouchEvent:16225 android.view.ViewGroup.dispatchTransformedTouchEvent:3322 I/GestureDetector: obtain mCurrentMotionEventRaw. action: 2 id: 887786843 I/InputDispatcher( 1407): Delivering touch to : action: 0x1, f=0x0, d=0, '3ddb553', t=1 I/ViewRootImpl@1335bc4[QtActivity]: ViewPostIme pointer 1 I/GestureDetector: handleMessage TAP
but not the transmission to the Widget.
Here is a sniped code:
#include <QApplication> #include <QMainWindow> #include <QStyle> #include <QPushButton> #include <QMessageBox> int main(int argc, char *argv[]) { QApplication a(argc, argv); QMainWindow w; auto btn = new QPushButton("touch Me", &w); w.setCentralWidget(btn); btn->connect(btn, &QPushButton::clicked, [&](){QMessageBox::warning(&w, "Title", "text");}); auto font = QFont("Sans Serif", 30); a.setStyleSheet(QString("*{font-family: '%1';font-size: %2pt;}").arg(font.family()).arg(font.pointSize())); a.setFont(font); w.show(); return a.exec(); }