ScreenCapture QML Type
This type is used for capturing a screen. More...
Instantiates: | QScreenCapture |
Properties
- active : bool
- error : string
- errorString : string
- screen : Screen
Detailed Description
\inqmlmodule
QtMultimedia \ingroup
multimedia_qml \ingroup
multimedia_video_qml
ScreenCapture captures a screen. It is managed by MediaCaptureSession where the captured screen can be displayed in a video preview object or recorded to a file.
\since
6.5 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 ScreenCapture and CaptureSession.
Property Documentation
active : bool |
Describes whether the capturing is currently active.
[read-only] error : string |
Returns a code of the last error.
[read-only] errorString : string |
Returns a human readable string describing the cause of error.
screen : Screen |
Describes the screen for capturing.