QMicrophonePermission Class

音のモニタリングや録音のためにマイクにアクセスします。詳細...

ヘッダー #include <QPermissions>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
以来:Qt 6.5

詳しい説明

必要条件

実行時にこのパーミッションを要求するには、ビルド時に以下のプラットフォーム固有の使用宣言を行う必要があります:

プラットフォームプラットフォーム
アップル使用法の説明NSMicrophoneUsageDescription
アンドロイドuses-permissionandroid.permission.RECORD_AUDIO

プロジェクトに追加する方法については、個々の使用宣言タイプを参照してください。

QPermission,QCoreApplication::requestPermission(),QCoreApplication::checkPermission(),Application Permissionsも参照してください

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