C

Studio3D QML Type

Qt 3D Studio presentation viewer. More...

Import Statement: import QtStudio3D 1.0

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!");
    }
}

Property Documentation

presentation : Presentation

Accessor for the presentation.

This property is read-only.


running : bool

The value of this property is true when the viewer has been initialized and the presentation is running.

This property is read-only.


viewerSettings : ViewerSettings

Accessor for the viewer settings.

This property is read-only.


Signal Documentation

frameUpdate()

This signal is emitted each time a frame has been updated regardless of visibility. This allows a hidden Studio3D element to still process information every frame, even though the renderer is not rendering.

The corresponding handler is onFrameUpdate.

To prevent expensive handlers from being processed when hidden, add an early return to the top like:

onFrameUpdate: {
    if (!visible) return;
    ...
}

Available under certain Qt licenses.
Find out more.