WindowCapture QML Type
Ce type est utilisé pour capturer une fenêtre. Plus d'informations...
| Import Statement: | import QtMultimedia |
| Since: | Qt 6.6 |
| In C++: | QWindowCapture |
Propriétés
- active : bool
- error : enumeration
- errorString : string
- window : Window
Méthodes
- list<CapturableWindow> capturableWindows()
- start()
- stop()
Description détaillée
WindowCapture capture une fenêtre. Elle est gérée par MediaCaptureSession où la fenêtre capturée peut être affichée dans un objet de prévisualisation vidéo ou enregistrée dans un fichier.
Limites de la capture de fenêtre
Les limitations suivantes s'appliquent à l'utilisation de WindowCapture :
- La capture de fenêtre n'est prise en charge qu'avec le backend FFmpeg.
Voir également CaptureSession et CapturableWindow.
Documentation de la propriété
active : bool |
Indique si la capture est actuellement active.
error : enumeration |
Renvoie un code de la dernière erreur.
errorString : string |
Renvoie une chaîne lisible par l'homme décrivant la cause de l'erreur.
window : Window |
Décrit la fenêtre de capture.
Voir également QtMultimedia::WindowCapture::capturableWindows.
Documentation de la méthode
list<CapturableWindow> capturableWindows() |
Renvoie une liste d'objets CapturableWindow disponibles pour la capture.
start() |
stop() |
© 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.