このページでは

QCameraPermission Class

カメラにアクセスして、写真や動画を撮影します。詳細...

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

詳細な説明

要件

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

プラットフォーム型
Apple使用法の説明NSCameraUsageDescription
Androiduses-permissionandroid.permission.CAMERA

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

関連項目: QPermission 、QCoreApplication::requestPermission()、QCoreApplication::checkPermission()、およびアプリケーションの権限。

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