Video Graphics Item Example

Streaming video on a graphics scene.

Video Graphics Item demonstrates how to implement a QGraphicsItem that displays video on a graphics scene using QVideoSink.

Video interface with control panel

Running the Example

You can run the example from:

  • Qt Creator

    Open the Welcome mode and select the example from Examples. For more information, see Qt Creator: Tutorial: Build and run.

  • Qt Extension for Visual Studio Code

    Run the Qt: Open Qt examples command from the Command Palette, and select the example from the list. For more information, see Qt Extension for Visual Studio Code: Tutorial: Build and run.

Example project @ code.qt.io

See also Video Widget Example.