CapturableWindow QML Value Type
Le type `CapturableWindow` sert à récupérer les informations de base d'une fenêtre pouvant être capturée via WindowCapture. En savoir plus...
| Import Statement: | import QtMultimedia |
| Since: | Qt 6.6 |
| In C++: | QCapturableWindow |
Propriétés
- description : string
- isValid : string
Description détaillée
La classe contient un enregistrement des informations relatives à la fenêtre, à l'exception de la propriété «isValid » qui récupère l'état réel de la fenêtre à chaque fois.
Une instance de `CapturableWindow` peut être construite implicitement à partir d’un ` Window`. Les développeurs d’applications peuvent tirer parti de cette fonctionnalité en transmettant une fenêtre QML à la propriété « window » d’un ` WindowCapture`. Voir l’exemple suivant.
Window {
id: topWindow
WindowCapture {
window: topWindow
}
}Voir également WindowCapture.
Documentation sur les propriétés
description : string [read-only]
Cette propriété contient la description de la fenêtre. Dans la plupart des cas, elle correspond au titre de la fenêtre.
isValid : string [read-only]
Cette propriété indique si les informations relatives à une fenêtre sont valides.
Une information de fenêtre non valide fait référence à une fenêtre qui n'existe pas ou ne fait référence à aucune fenêtre en particulier.
© 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.