C

SceneElement QML Type

Control type for scene and component elements in a Qt 3D Studio presentation. More...

Import Statement: import QtStudio3D 1.0
Inherits:

Element

Properties

Signals

Methods

Detailed Description

This type is a convenience type for managing the slides of a single time context (a Scene or a Component element) of a presentation.

All methods provided by this type are queued and handled asynchronously before the next frame is displayed.

See also Studio3D and Qml Presentation.

Property Documentation

currentSlideIndex : int

Holds the index of the currently active slide of the tracked time context.

Changing the current slide via this property is asynchronous. The property value will not actually change until the next frame has been processed, and even then only if the new slide was valid.

Note: If this property is set to something else than the default slide for the scene at the initial declaration of SceneElement, you will still get an extra changed signal for the default slide before the slide changes to the desired one. This happens in order to ensure we end up with the index of the slide that is actually shown even if the slide specified in the initial declaration is invalid.


currentSlideName : string

Holds the name of the currently active slide of the tracked time context.

Changing the current slide via this property is asynchronous. The property value will not actually change until the next frame has been processed, and even then only if the new slide was valid.

Note: If this property is set to something else than the default slide for the scene at the initial declaration of SceneElement, you will still get an extra changed signal for the default slide before the slide changes to the desired one. This happens in order to ensure we end up with the name of the slide that is actually shown even if the slide specified in the initial declaration is invalid.


previousSlideIndex : int

Holds the index of the previously active slide of the tracked time context.

This property is read-only.


previousSlideName : string

Holds the name of the previously active slide of the tracked time context.

This property is read-only.


Signal Documentation

currentSlideIndexChanged(int currentSlideIndex)

This signal is emitted when the current slide changes. The new value is provided in the currentSlideIndex parameter.

This signal is always emitted with currentSlideNameChanged.

The corresponding handler is onCurrentSlideIndexChanged.


currentSlideNameChanged(string currentSlideName)

This signal is emitted when the current slide changes. The new value is provided in the currentSlideName parameter.

This signal is always emitted with currentSlideIndexChanged.

The corresponding handler is onCurrentSlideNameChanged.


previousSlideIndexChanged(int previousSlideIndex)

This signal is emitted when the previous slide changes. The new value is provided in the previousSlideIndex parameter.

This signal is always emitted with previousSlideNameChanged.

The corresponding handler is onPreviousSlideIndexChanged.


previousSlideNameChanged(string previousSlideName)

This signal is emitted when the previous slide changes. The new value is provided in the previousSlideName parameter.

This signal is always emitted with previousSlideIndexChanged.

The corresponding handler is onPreviousSlideNameChanged.


Method Documentation

void goToSlide(bool next, bool wrap)

Requests a time context (a Scene or a Component element) to change to the next or the previous slide, depending on the value of next. If the context is already at the last or first slide, wrap defines if change occurs to the opposite end.


void goToTime(string elementPath, real time)

Sets a time context (a Scene or a Component element) to a specific playback time in seconds.

For behavior details, see Presentation::goToTime() documentation.


Available under certain Qt licenses.
Find out more.