C
Qt Android Automotive Base Module
The Qt Android Automotive Base module contains APIs to manage various Android Automotive features. It contains classes that other Qt for Android Automotive modules may depend on. These classes are small and potentially low level features that integrate with the Android Automotive OS.
Getting Started
To include the definitions of the module's classes, use the following directive for C++:
#include <QtAndroidAutomotiveBase>
To use the QML types, add the following import statement to your .qml file:
import QtAndroidAutomotive.Base
Using the Module
Using a Qt module requires linking against the module library, either directly or through other dependencies. CMake and qmake build tools are supported.
Building with CMake
Use the find_package()
and target_link_libraries()
commands to locate and link the needed module component from the Qt6 package:
find_package(Qt6 REQUIRED COMPONENTS AndroidAutomotiveBase) target_link_libraries(mytarget PRIVATE Qt::AndroidAutomotiveBase)
Permissions
Some of the APIs in the module need Android permissions to function properly. For more details, see Permissions in Qt Android Automotive Base Module.
API Reference
Links to the API reference materials:
Examples
Demonstrates usage of the AndroidAppsUtils QML component from the QtAndroidAutomotive.Base module. | |
Uses the Qt Android Notifications Listener QML API to make an interactive notifications list. | |
Demonstrates usage of the Qt Android Apps Utils API with multi-screen support. |
Known issues and limitations
Notifications Listener known issues and limitations
Checking whether access to notifications has been granted requires Android API 27 or higher to work properly.
Available under certain Qt licenses.
Find out more.