Sur cette page

CapturableWindow QML Value Type

Le type CapturableWindow est utilisé pour obtenir les bases d'une fenêtre disponible pour la capture via WindowCapture. Plus...

Import Statement: import QtMultimedia
Since: Qt 6.6
In C++: QCapturableWindow

Propriétés

Description détaillée

La classe contient un dump d'informations sur la fenêtre, à l'exception de la propriété "isValid" qui extrait à chaque fois l'état réel de la fenêtre.

Une instance de CapturableWindow peut être implicitement construite à partir d'une Window. Les développeurs d'applications peuvent l'utiliser en passant une fenêtre QML dans la propriété "window" d'une 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 représente le titre de la fenêtre.

isValid : string [read-only]

Cette propriété permet d'identifier si une information de fenêtre est valide.

Une information de fenêtre non valide fait référence à une fenêtre inexistante ou ne fait référence à aucune fenêtre.

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