Details
-
Technical task
-
Resolution: Fixed
-
P2: Important
-
None
-
-
2024wk38s2FOQtforAndroid, 2024wk32s2FOQtforAndroid, 2024wk34s2FOQtforAndroid
-
d615e2981 (dev), 095c3df07 (6.8), 6b1555ad6 (6.8.0)
Description
What?
main.cpp of the Qt project that is going to be used by QtQuickView is not compatible with the default one that most of our tools (Qt Creator and Qt Design Studio)
Why?
Although the application library has main{} entry point, they should not instantiate a Quick window, as QtQuickView is supposed to create the main window. But the main evenloop still needs to be created by QGuiApplication::exec() in side main{}.
The user of QtQuickView, is still able to add more initialization to the entry point of the library though. For instance if they would like to register types, load external resources, register JNI function or any other case other than instantiating a quick window.
How?
For now, before adding support in our tools, this can be documented so that if a user creates a QML project using any other tool than the Qt Tools for Android Studio, they have enough information to modify the main.cpp accordingly.
Attachments
Issue Links
- relates to
-
QTBUG-127554 Android studio and QT DS projects are not compatible
- In Progress
-
QTBUG-125892 QtDS compatibility - Improve qmldir path discovery
- In Review