QCameraPermission Class
Acesse a câmera para tirar fotos ou gravar vídeos. Mais...
| Cabeçalho: | #include <QPermissions> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
| Desde: | Qt 6.5 |
Descrição detalhada
Requisitos
Para solicitar essa permissão em tempo de execução, as seguintes declarações de uso específicas da plataforma devem ser feitas no momento da compilação:
| Plataforma | Tipo | |
|---|---|---|
| Apple | Descrição de uso | NSCameraUsageDescription |
| Android | uses-permission | android.permission.CAMERA |
Consulte os tipos individuais de declaração de uso para saber como adicioná-los ao seu projeto.
Veja também QPermission, QCoreApplication::requestPermission(), QCoreApplication::checkPermission() e Permissões do aplicativo.
© 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.