Widgets+QML Android
-
Hello, everyone!
For my application I need to use QGraphicsView and the QML interface.
For this I have two ways:
- QQuickWidget.
- QQuickView + QWidget::createWindowContainer
But for the two approaches I have problems.
-
Everything works on Windows but TextField doesn't work when using the standard Android emulator. No input cursor and no keyboard appears, the component is just not active. Strangely enough SpinBox and TextInput, buttons and everything else works.
But if I create a simple application using only Qt Quick, everything works fine! What can be the problem? -
The second way is more preferable for me. Everything works on Windows. But I have problems on Android emulator too. In this case, all QML components are not active, they do not respond to clicks. Please tell me what could be the problem?
I use Qt 6.5, Qt Creator with CMake and Emulator for "7inn WSVGA (Tablet)" Android 12.0 (S) (SDK 31) x86_64
-
Hello, everyone!
For my application I need to use QGraphicsView and the QML interface.
For this I have two ways:
- QQuickWidget.
- QQuickView + QWidget::createWindowContainer
But for the two approaches I have problems.
-
Everything works on Windows but TextField doesn't work when using the standard Android emulator. No input cursor and no keyboard appears, the component is just not active. Strangely enough SpinBox and TextInput, buttons and everything else works.
But if I create a simple application using only Qt Quick, everything works fine! What can be the problem? -
The second way is more preferable for me. Everything works on Windows. But I have problems on Android emulator too. In this case, all QML components are not active, they do not respond to clicks. Please tell me what could be the problem?
I use Qt 6.5, Qt Creator with CMake and Emulator for "7inn WSVGA (Tablet)" Android 12.0 (S) (SDK 31) x86_64
@Tyrion I won't really be helpful, but
- QQuickWidget is the intended method to have QtQuick and inside QtWidgets app. But on my side i'm also having a little problem with this : on a windows touchscreen device (surface pro 5), the UI inside the QQuickWidget doesn't respond at all to the touchscreen, while it works perfectly with QQuickView. So I wouldn't be surprised this to be a new problem with QQuickWidget.
- QtWidgets is not really the best choice for mobile devices.
I haven't entirely read this article, but I'd suggest that you do. I might be wrong but i feel like the QQuickPaintedItem might be an alternative to QGraphicsView ?