Jump to content

Qt for HarmonyOS/qtohosextras doc/QOhosElementName Class

From Qt Wiki
Revision as of 06:16, 17 September 2026 by Shawn Luo (talk | contribs) (Drop manual breadcrumb, MediaWiki renders it automatically (QTFOROH-2307))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

QOhosElementName Struct

struct QtOhosExtras::QOhosElementName

The QOhosElementName struct identifies an ability component. More...

Header: #include <QOhosElementName>
qmake: QT += ohosextras
Since: Qt 5.12.12

This struct was introduced in Qt 5.12.12.

Public Variables

QString abilityName
QString bundleName
QString deviceId
QString moduleName
QString shortName
QString uri

Detailed Description

It corresponds to the OHOS ElementName type and is delivered by the QOhosStartRequest::requestSucceeded() and QOhosStartRequest::requestFailed() signals. See ElementName.

Member Variable Documentation

QString QOhosElementName::abilityName

Name of the ability.

QString QOhosElementName::bundleName

Bundle name of the application.

QString QOhosElementName::deviceId

ID of the device that runs the ability.

QString QOhosElementName::moduleName

Name of the module (HAP) the ability belongs to.

QString QOhosElementName::shortName

Short name of the ability, a string starting with a period (.).

QString QOhosElementName::uri

Resource identifier.