C

Studio3D QML Type

Qt 3D Studio presentation viewer. More...

Import Statement: import .
Inherits:

Item

Properties

Signals

Detailed Description

This type enables developers to embed Qt 3D Studio presentations in Qt Quick.

Example usage

Studio3D {
    id: studio3D
    Presentation {
        source: "qrc:///presentation.uia"
        SceneElement {
            id: scene
            elementPath: "Scene"
            currentSlideIndex: 2
        }
        Element {
            id: textLabel
            elementPath: "Scene.Layer.myLabel"
        }
    }
    ViewerSettings {
        showRenderStats: true
    }
    onRunningChanged: {
        console.log("Presentation ready!");
    }
}

Controlling the presentation

Like the example above suggests, Studio3D and the other types under the QtStudio3D import offer more than simply rendering the animated Qt 3D Studio presentation. They also offer scene manipulation, including

Property Documentation

error : string

Contains the text for the error message that was generated during the loading of the presentation. When no error occurred or there is no presentation loaded, the value is an empty string.

This property is read-only.


presentation : Presentation

Accessor for the presentation. Applications are expected to create a single Presentation child object for Studio3D. If this is omitted, a presentation is created automatically.

This property is read-only.


running : bool

The value of this property is true when the presentation has been loaded and is ready to be shown.

This property is read-only.


Signal Documentation

frameUpdate()

This signal is emitted each time a frame has been rendered.


presentationLoaded()

This signal is emitted when the presentation has been loaded and is ready to be shown.


presentationReady()

This signal is emitted when the presentation has fully initialized its 3D scene for the first frame.

The difference to presentationLoaded() is that this signal is emitted only when the asynchronous operations needed to build to 3D scene and the first frame have completed.

When implementing splash screens via Loader items and the Item::visible property, this is the signal that should be used to trigger hiding the splash screen.


Available under certain Qt licenses.
Find out more.