C

ViewerSettings QML Type

Qt 3D Studio presentation viewer settings. More...

Import Statement: import QtStudio3D 1.0

Properties

Signals

Methods

  • void load(string group, string organization, string application)
  • void save(string group, string organization, string application)

Detailed Description

This type provides properties to define presentation independent viewer settings.

See also Studio3D.

Property Documentation

matteColor : color

Specifies the color of the viewer area not occupied by the presentation. Default value is black.


scaleMode : enumeration

The scaling mode used for the viewer presentation.

ConstantDescription
ViewerSettings::ScaleModeFitScales the presentation to fit the viewer.
ViewerSettings::ScaleModeFillScales the presentation to fill the viewer.
ViewerSettings::ScaleModeCenterCenters the presentation into the viewer without scaling it. The default value is ScaleModeCenter.

See also Q3DSViewerSettings::ScaleMode.


shadeMode : enumeration

The shading mode used for the viewed presentation. The default value is ShadeModeShaded.

ConstantDescription
ViewerSettings.ShadeModeShadedThe objects in the presentation are shaded normally.
ViewerSettings.ShadeModeShadedWireframeThe objects in the presentation are shaded with a super-imposed wireframe on top of the normal shading. Only objects that specify a tesselation mode will display this wireframe.

See also Q3DSViewerSettings::ShadeMode.


showRenderStats : bool

If this property is set to true, render statistics are displayed on the upper part of the viewer. Default value is false.


Signal Documentation

matteColorChanged(color color)

This signal is emitted when the matteColor property has changed. The new value is provided in the color parameter.

The corresponding handler is onMatteColorChanged.


scaleModeChanged(enumeration mode)

This signal is emitted when the scaleMode property has changed. The new value is provided in the mode parameter.

The corresponding handler is onScaleModeChanged.


shadeModeChanged(enumeration mode)

This signal is emitted when the shadeMode property has changed. The new value is provided in the mode parameter.

The corresponding handler is onShadeModeChanged.


showRenderStatsChanged(bool show)

This signal is emitted when the showRenderStats property has changed. The new value is provided in the show parameter.

The corresponding handler is onShowRenderStatsChanged.


Method Documentation

void load(string group, string organization, string application)

Loads previously saved viewer settings using group, organization and application.


void save(string group, string organization, string application)

Persistently saves the viewer settings using group, organization and application.


Available under certain Qt licenses.
Find out more.