C

QtAndroidAppsUtils::QAppItem Class

class QtAndroidAppsUtils::QAppItem

A basic Android app element. More...

Header: #include <QAppItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS AndroidAutomotiveBase)
target_link_libraries(mytarget PRIVATE Qt6::AndroidAutomotiveBase)
Inherits: QObject

Properties

  • packageName : const QString
  • (since QtAndroidAutomotive 6.5) uid : const int

Public Functions

QAppItem(const QString &packageName, const QString &appName, const QImage &appIcon, bool isSystemApp, QObject *parent = nullptr)
(since QtAndroidAutomotive 6.5) QAppItem(const QString &packageName, const QString &appName, const QImage &appIcon, bool isSystemApp, int uid, QObject *parent = nullptr)
virtual ~QAppItem() override
const QString appIconString() const
QString appName() const
bool isSystemApp() const
QString packageName() const
int uid() const

Detailed Description

Property Documentation

[read-only] appIcon : const QString

Holds the app icon as a Uri encoded data QString.

Access functions:

const QString appIconString() const

[read-only] appName : const QString

Holds the human-readable app name.

Access functions:

QString appName() const

[read-only] isSystemApp : const bool

Holds true if the app is a system app, false otherwise.

Access functions:

bool isSystemApp() const

[read-only] packageName : const QString

Holds the name of the app's package.

Access functions:

QString packageName() const

[read-only, since QtAndroidAutomotive 6.5] uid : const int

Returns the User ID for this app.

This property was introduced in QtAndroidAutomotive 6.5.

Access functions:

int uid() const

Member Function Documentation

QAppItem::QAppItem(const QString &packageName, const QString &appName, const QImage &appIcon, bool isSystemApp, QObject *parent = nullptr)

Creates an Android app element with the package name packageName, human readable name appName, and an icon appIcon. The isSystemApp argument distinguishes between a user and a system app. The parent argument takes an optional QObject.

[since QtAndroidAutomotive 6.5] QAppItem::QAppItem(const QString &packageName, const QString &appName, const QImage &appIcon, bool isSystemApp, int uid, QObject *parent = nullptr)

Creates an Android app element with the package name packageName, human readable name appName, and an icon appIcon. The isSystemApp argument distinguishes between a user and a system app. The uid argument is the User ID of the application. The parent argument takes an optional QObject.

This function was introduced in QtAndroidAutomotive 6.5.

[override virtual noexcept] QAppItem::~QAppItem()

The class destructor.

const QString QAppItem::appIconString() const

Returns the app icon as a Uri encoded data QString.

Note: Getter function for property appIcon.

Available under certain Qt licenses.
Find out more.