本页内容

Qt Core Private C++ Classes

提供私有核心功能。更多内容...

该模块处于技术预览阶段,内容可能会有变动。

命名空间

QtAndroidPrivate

用于辅助 Android 开发的各类函数

类

QAndroidActivityResultReceiver

用于在 Android 主 Activity 中通过 onActivityResult() 进行回调的接口

QAndroidBinder

封装了 Android Binder 类中最重要的方法

QAndroidIntent

封装了 Android Intent 类中最重要的一些方法

QAndroidParcel

封装了 Android Parcel 类中最关键的方法

QAndroidService

封装了 Android Service 类中最重要的一些方法

QAndroidServiceConnection

封装了 Android ServiceConnection 类中最关键的方法

详细说明

使用 CMake 构建时,请使用以下命令来调用私有Qt Core API:

find_package(Qt6 REQUIRED COMPONENTS CorePrivate)
target_link_libraries(mytarget PRIVATE Qt6::CorePrivate)

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.