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 une décharge 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.

Propriété Documentation

description : string [read-only]

Cette propriété contient la description de la fenêtre référencée.


isValid : string [read-only]

Cette propriété indique si les informations relatives à la fenêtre sont valides.

Une information de fenêtre non valide renvoie à une fenêtre inexistante ou ne renvoie à aucune fenêtre.


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