IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

ScreenCapture QML Type

The ScreenCapture type is used for capturing a screen.

This type was introduced in Qt 6.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

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.

 
Sélectionnez
CaptureSession {
    id: captureSession
    screenCapture: ScreenCapture {
        id: screenCapture
        active: true
    }
    videoOutput: VideoOutput {
        id: videoOutput
    }
}

I-1. See Also

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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+