![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Directories | |
| entry | |
This DevEco Studio project provides the baseline application shell used to launch Qt applications on HarmonyOS.
For prerequisites (DevEco Studio version, HarmonyOS SDK API level, required third-party packages), the Qt build procedure, and the recommended deployment workflow using harmonydeployqt, see:
When integrating Qt manually instead of running harmonydeployqt:
For Qt Quick applications, additionally copy QML module files into the following locations:
See How to deploy a QML app for details.
The HarmonyOS platform plugin reads Want parameters when the ability is launched. In DevEco Studio's run configuration, extra flags can be passed using --pb for boolean values and --ps for string values, for example:
Commonly used flags:
| Flag | Type | Description |
|---|---|---|
| io.qt.useUriAsArg | bool | Whether the ability launch URI is forwarded as the first argument (default: true). |
| io.qt.useDefaultUiAbilityInstanceInQt | bool | Reuse the existing UI ability instance instead of creating a new one. |
| io.qt.appSharedLibNameOverride | string | Overrides APP_LIBRARY_NAME at launch time without modifying QtAppConstants.ets. |