本页内容

MicrophonePermission QML Type

访问用户的麦克风。更多...

Import Statement: import QtCore
Since: Qt 6.6

属性

  • status : Qt::PermissionStatus

方法

详细说明

此类型表示QMicrophonePermission ,可用于检查用户的麦克风状态并请求访问权限。

有关各个属性的文档和详细使用要求,请参阅QMicrophonePermission 。

另请参阅 QML 应用程序权限、应用程序权限和QMicrophonePermission 。

属性文档

status : Qt::PermissionStatus

该属性保存了权限的当前状态。

另请参阅 QCoreApplication::checkPermission 。

方法文档

void request()

使用其当前属性请求该权限。

另请参阅 QCoreApplication::requestPermission()。

© 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.