I removed android:theme
from AndroidManifest.xml:
<activity android:name="net.geographx.MainActivity"
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:exported="true">
<!-- Splash screen -->
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/splash"/>
<!-- Splash screen -->
and removed apptheme.xml
from platform\android\res\values
directory:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault.NoActionBar">
<item name="android:windowBackground">@drawable/splash</item>
</style>
</resources>
https://forum.qt.io/topic/99541/how-to-have-a-splash-screen-in-android-application-built-with-qml/3
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/launch_logo"/>
How to display the splash screen immediately when Qt/QML android app is launched?
https://stackoverflow.com/questions/64108523/how-to-display-the-splash-screen-immediately-when-qt-qml-android-app-is-launched
qt-json-editor
https://github.com/peteristhegreat/qt-json-editor
Qt: Throwing an exception from C++ to QML engine
qmlEngine(this)->throwError(tr(“Division by zero error”));
https://doc.qt.io/qtforpython-6/gettingstarted.html#getting-started
import sys
from PySide6.QtGui import QGuiApplication
from PySide6.QtQml import QQmlApplicationEngine
if __name__ == “__main__”:
app = QGuiApplication(sys.argv)
engine = QQmlApplicationEngine()
engine.addImportPath(sys.path[0])
engine.loadFromModule(“Example”, “Main”)
if not engine.rootObjects():
sys.exit(-1)
exit_code = app.exec()
del engine
sys.exit(exit_code)