C

QtAndroidAppsUtils::QAppsList Class

class QtAndroidAppsUtils::QAppsList

An Android app list of QAppItem elements. More...

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

Public Functions

QAppsList(QObject *parent = nullptr)
virtual ~QAppsList() override
QList<QSharedPointer<QtAndroidAppsUtils::QAppItem>> appList() const
void appendApp(QtAndroidAppsUtils::QAppItem *app)
void removeApp(int index)

Detailed Description

Member Function Documentation

[explicit] QAppsList::QAppsList(QObject *parent = nullptr)

Creates a list instance for app elements, with an optional parent QObject.

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

The class destructor.

QList<QSharedPointer<QtAndroidAppsUtils::QAppItem>> QAppsList::appList() const

Returns the current apps list.

void QAppsList::appendApp(QtAndroidAppsUtils::QAppItem *app)

Appends an QAppItem pointer app (ownership transferred to the QAppsList) to the list of apps.

void QAppsList::removeApp(int index)

Removes the app at the index number from the apps list.

Available under certain Qt licenses.
Find out more.