Qt for HarmonyOS/qtohosextras doc/Qt Ohos Extras Examples: Difference between revisions
Update from qdoc output (QTFOROH-2307) |
Add example documentation from qdoc output (QTFOROH-2307) |
||
| Line 10: | Line 10: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/App_Bundle_Info_Example|App Bundle Info Example]] | |||
| Demonstrates how to read the application's bundle information at runtime. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Application_Continuation_Example|Application Continuation Example]] | |||
| Demonstrates cross-device application continuation with distributed data objects and file assets. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Audio_Stream_Usage_Hint_Example|Audio Stream Usage Hint Example]] | |||
| Demonstrates tagging Qt sound playback with an OHOS audio stream usage hint. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Bundled_Embedded_UI_Extension_Example|Bundled Embedded UI Extension Example]] | |||
| Demonstrates binding Qt windows to bundled EmbeddedUIExtensionAbility instances by key. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Color_Theme_Example|Color Theme Example]] | |||
| Demonstrates selecting the application color theme and reacting to dark and light theme changes. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Context_Menu_on_Long_Press_Example|Context Menu on Long Press Example]] | |||
| Demonstrates enabling synthesized context-menu events for long-press touch input. | |||
|- | |- | ||
| [[Qt_for_HarmonyOS/qtohosextras_doc/File_Permissions_Example|File Permissions Example]] | | [[Qt_for_HarmonyOS/qtohosextras_doc/File_Permissions_Example|File Permissions Example]] | ||
| Demonstrates how to use the file permissions API in QtOhosExtras to grant and check access to files. | | Demonstrates how to use the file permissions API in QtOhosExtras to grant and check access to files. | ||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/File_Utils_Example|File Utils Example]] | |||
| Demonstrates moving a user-selected file to the system trash. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Keep_Screen_On_Example|Keep Screen On Example]] | |||
| Demonstrates keeping the screen on while a window is displayed. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Native_Window_ID_Example|Native Window ID Example]] | |||
| Demonstrates obtaining the native OHOS window ID of a Qt window. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Open_Link_Example|Open Link Example]] | |||
| Demonstrates opening a link with optional App Linking enforcement. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Preload_Example|Preload Example]] | |||
| Demonstrates handling the Preload launch reason so a preloaded ability shows its window only when actually started. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Request_Permission_Example|Request Permission Example]] | |||
| Demonstrates requesting application permissions from the user, per main window, by enum and by name. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Restart_Application_Example|Restart Application Example]] | |||
| Demonstrates restarting the application with or without its launch want parameters. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Screen_Display_ID_Example|Screen Display ID Example]] | |||
| Demonstrates obtaining the native display ID of the screen a window is shown on. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Serial_Port_Permissions_Example|Serial Port Permissions Example]] | |||
| Demonstrates requesting and checking OHOS serial port access rights. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Share_Data_Example|Share Data Example]] | |||
| Demonstrates sharing text, file and URL records with other applications through OHOS Share Kit. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Share_Data_Receiver_Example|Share Data Receiver Example]] | |||
| Demonstrates receiving Share Kit records delivered to the application through a want. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Start_Ability_For_Result_Example|Start Ability For Result Example]] | |||
| Demonstrates starting another UIAbility and receiving its result asynchronously. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Start_Options_Example|Start Options Example]] | |||
| Demonstrates configuring the full set of QOhosStartOptions fields when starting another ability. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Want_FDs_Receiver_Example|Want FDs Receiver Example]] | |||
| Demonstrates receiving file descriptors passed to the application through a want. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Want_FDs_Sender_Example|Want FDs Sender Example]] | |||
| Demonstrates sending open file descriptors to another ability through a want. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Window_Corner_Radius_Example|Window Corner Radius Example]] | |||
| Demonstrates setting rounded corners on a Qt window. | |||
|- | |||
| [[Qt_for_HarmonyOS/qtohosextras_doc/Window_Drag_Resize_Example|Window Drag Resize Example]] | |||
| Demonstrates enabling drag-resize on sub windows and floating windows. | |||
|} | |} | ||
[[Category:Qt for HarmonyOS]] | [[Category:Qt for HarmonyOS]] | ||
Revision as of 09:08, 16 September 2026
< Qt for HarmonyOS / qtohosextras doc
Qt Ohos Extras Examples
This page lists the examples available in the Qt Ohos Extras module.
Note: These examples are designed to run on OpenHarmony only.
| App Bundle Info Example | Demonstrates how to read the application's bundle information at runtime. |
| Application Continuation Example | Demonstrates cross-device application continuation with distributed data objects and file assets. |
| Audio Stream Usage Hint Example | Demonstrates tagging Qt sound playback with an OHOS audio stream usage hint. |
| Bundled Embedded UI Extension Example | Demonstrates binding Qt windows to bundled EmbeddedUIExtensionAbility instances by key. |
| Color Theme Example | Demonstrates selecting the application color theme and reacting to dark and light theme changes. |
| Context Menu on Long Press Example | Demonstrates enabling synthesized context-menu events for long-press touch input. |
| File Permissions Example | Demonstrates how to use the file permissions API in QtOhosExtras to grant and check access to files. |
| File Utils Example | Demonstrates moving a user-selected file to the system trash. |
| Keep Screen On Example | Demonstrates keeping the screen on while a window is displayed. |
| Native Window ID Example | Demonstrates obtaining the native OHOS window ID of a Qt window. |
| Open Link Example | Demonstrates opening a link with optional App Linking enforcement. |
| Preload Example | Demonstrates handling the Preload launch reason so a preloaded ability shows its window only when actually started. |
| Request Permission Example | Demonstrates requesting application permissions from the user, per main window, by enum and by name. |
| Restart Application Example | Demonstrates restarting the application with or without its launch want parameters. |
| Screen Display ID Example | Demonstrates obtaining the native display ID of the screen a window is shown on. |
| Serial Port Permissions Example | Demonstrates requesting and checking OHOS serial port access rights. |
| Share Data Example | Demonstrates sharing text, file and URL records with other applications through OHOS Share Kit. |
| Share Data Receiver Example | Demonstrates receiving Share Kit records delivered to the application through a want. |
| Start Ability For Result Example | Demonstrates starting another UIAbility and receiving its result asynchronously. |
| Start Options Example | Demonstrates configuring the full set of QOhosStartOptions fields when starting another ability. |
| Want FDs Receiver Example | Demonstrates receiving file descriptors passed to the application through a want. |
| Want FDs Sender Example | Demonstrates sending open file descriptors to another ability through a want. |
| Window Corner Radius Example | Demonstrates setting rounded corners on a Qt window. |
| Window Drag Resize Example | Demonstrates enabling drag-resize on sub windows and floating windows. |