Jump to content

Filepermissions/filepermissions.pro

From Qt Wiki
Revision as of 06:42, 29 January 2026 by Kiki.ji (talk | contribs) (Created page with "< File Permissions Example = filepermissions.pro Example File = <span style="font-size: 1.2em; color: grey;">filepermissions/filepermissions.pro</span> == Description == This file contains the qmake project configuration for the File Permissions example.<syntaxhighlight lang="cpp"> QT += ohosextras SOURCES += \ main.cpp target.path = $$[QT_INSTALL_EXAMPLES]/qtohosextras/filepermissions INSTALLS += target </syntaxhighlight> === Key Configurations...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< File Permissions Example

filepermissions.pro Example File

filepermissions/filepermissions.pro

Description

This file contains the qmake project configuration for the File Permissions example.

 QT += ohosextras

 SOURCES += \
     main.cpp

 target.path = $$[QT_INSTALL_EXAMPLES]/qtohosextras/filepermissions
 INSTALLS += target

Key Configurations

  • QT += ohosextras: Includes the Qt Ohos Extras module, which provides the file permissions and sharing APIs.
  • SOURCES += main.cpp: Specifies the C++ source file for the application.
  • INSTALLS += target: Configures the installation path for the example project.