This type is used for capturing a window. More...
| Import Statement: | import QtMultimedia
|
| Since: | Qt 6.6 |
| In C++: | QWindowCapture |
WindowCapture captures a window. It is managed by MediaCaptureSession where the captured window can be displayed in a video preview object or recorded to a file.
The following limitations apply to using WindowCapture:
See also CaptureSession and CapturableWindow.
active : bool
Describes whether the capturing is currently active.
error : enumeration [read-only]
Returns a code of the last error.
errorString : string [read-only]
Returns a human readable string describing the cause of error.
window : Window
Describes the window for capturing.
list<CapturableWindow> capturableWindows()
Returns a list of CapturableWindow objects that is available for capturing.
start()
stop()
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qml-qtmultimedia-windowcapture.html