ScreenCapture QML Type▲
-
Import Statement: import QtMultimedia
-
Since: Qt 6.5
-
Instantiates:: QScreenCapture
-
Group: ScreenCapture is part of multimedia_qml, multimedia_video_qml
Detailed Description▲
ScreenCapture captures a screen. It is managed by MediaCaptureSession where the captured view can be displayed in a window or recorded to a file.
The code below shows a simple capture session with ScreenCapture playing back the captured primary screen view in VideoOutput.
CaptureSession {
id
:
captureSession
screenCapture
:
ScreenCapture {
id
:
screenCapture
active
:
true
}
videoOutput
:
VideoOutput
{
id
:
videoOutput
}
}
See Also▲
See also ScreenCapture, CaptureSession