Access Bluetooth peripherals. 更多...
头: | #include <QPermissions> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
Since: | Qt 6.5 |
To request this permission at runtime, the following platform specific usage declarations have to be made at build time:
平台 | 类型 | |
---|---|---|
Apple | Usage description |
NSBluetoothAlwaysUsageDescription
|
Android |
uses-permission
|
android.permission.BLUETOOTH
|
Please see the individual usage declaration types for how to add them to your project.
另请参阅 QPermission , QCoreApplication::requestPermission (), QCoreApplication::checkPermission (),和 应用程序权限 .