直接上代码解决:
在android\res\values下新建文件styles.xml
<?xml version='1.0' encoding='utf-8'?><resources><style name="MyAppTheme"><item name="android:windowDisablePreview">true</item><item name="android:windowBackground">@null</item><item name="android:windowContentOverlay">@null</item><item name="android:windowIsTranslucent">false</item><item name="android:windowAnimationStyle">@null</item><!--<item name="android:windowBackground">@drawable/splash</item>--></style></resources>
在AndroidManifest.xml,application节点中添加
android:theme="@style/MyAppTheme"
结果类似:
<application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="-- %%INSERT_APP_NAME%% --" android:icon="@drawable/icon" android:theme="@style/MyAppTheme">