Jump to content

Qt for HarmonyOS/qtohosextras doc/QOhosWant Class

From Qt Wiki
Revision as of 03:30, 29 January 2026 by Kiki.ji (talk | contribs) (Created page with "< Qt for HarmonyOS / qtohosextras doc = QOhosWant Class = QOhosWant wraps Ohos [https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V5/want-V5 Want] class. More... {| class="wikitable" |- ! Header: | #include <QOhosWant> |- ! qmake: | QT += ohosextras |- ! Since: | Qt 5.12.12 |} * List of all members, including inherited members == Public Variables == {| class="wikitable" style="w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Qt for HarmonyOS / qtohosextras doc

QOhosWant Class

QOhosWant wraps Ohos Want class. More...

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

Public Variables

Type Variable
QString abilityName
QString action
QString bundleName
QString deviceId
QStringList entities
QHash<QString, int> fds
QtOhosExtras::QOhosWantFlags flags
QString moduleName
QJsonObject parameters
QString type
QString uri

Detailed Description

QOhosWant wraps Ohos Want class.

It keeps information that can be transmitted between applications. One of the usage scenarios of QOhosWant is a parameter of starting an ability or starting application process.

See also startAbility() and startAppProcess().

Member Variable Documentation

QString QOhosWant::abilityName

Represents the name of Ability to be started. See Ability Name.

QString QOhosWant::action

Represents the general operations to be performed, for example: viewing, sharing, application details. See Action.

QString QOhosWant::bundleName

Represents an application bundle name. See Bundle Name.

QString QOhosWant::deviceId

Represents the device Id on which Ability is to be performed. See Device Id.

QStringList QOhosWant::entities

Represents the additional category information of the target Ability for example: browser, video player. See Entities.

QHash<QString, int> QOhosWant::fds

Represents the file descriptor map in the Want object. See Fds.

QtOhosExtras::QOhosWantFlags QOhosWant::flags

Represents the way to deal with Want. See Flags.

See also QOhosWantFlag.

QString QOhosWant::moduleName

Represents the module name. See Module Name.

QJsonObject QOhosWant::parameters

Represents the list of parameters in the Want object. See Parameters.

QString QOhosWant::type

Represents the MIME type of the file to open for example 'text/xml', 'image/*', etc. See Type.

QString QOhosWant::uri

Represents the type of pending data. See Uri.