CapturableWindow QML Value Type

CapturableWindow 类型用于获取可通过WindowCapture 捕捉的窗口的基本信息。更多

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

属性

详细说明

该类包含窗口信息的转储,但属性'isValid'除外,它每次都会提取实际的窗口状态。

可捕获窗口(CapturableWindow)实例可从Window 隐式构建。应用程序开发人员可通过将 QML 窗口传入WindowCapture 的 "窗口 "属性来利用这一点。请参阅以下示例。

Window {
    id: topWindow

    WindowCapture {
        window: topWindow
    }
}

另请参阅 WindowCapture

属性文档

description : string [read-only]

该属性包含所引用窗口的描述。


isValid : string [read-only]

该属性可识别窗口信息是否有效。

无效的窗口信息指的是不存在的窗口或不指向任何窗口。


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