Jump to content

Qt for HarmonyOS/qtohosextras doc/File Utils Example

From Qt Wiki
Revision as of 09:06, 16 September 2026 by Shawn Luo (talk | contribs) (Add example documentation from qdoc output (QTFOROH-2307))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Qt for HarmonyOS / qtohosextras doc

File Utils Example

Demonstrates moving a user-selected file to the system trash.


The window contains a single button that opens a file dialog. When a file is chosen, the example calls QtOhosExtras::moveFileToTrash() and reports the boolean result in a message box. The call is synchronous and only reports success or failure.

Files: