ScreenCapture QML Type▲
-
Import Statement: import QtMultimedia
-
Since:: Qt 6.5
-
Instantiates:: QScreenCapture
-
Group: ScreenCapture is part of multimedia_qml, multimedia_video_qml
I. 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
}
}
I-1. See Also▲
See also ScreenCapture, CaptureSession
II. Property Documentation▲
II-1. active : bool▲
Describes whether the capturing is currently active.
II-2. [read-only] error : string▲
Returns a code of the last error.
II-3. [read-only] errorString : string▲
Returns a human readable string describing the cause of error.
II-4. screen : Screen▲
Describes the screen for capturing.