ViewerSettings QML Type
Qt 3D Studio presentation viewer settings. More...
Import Statement: | import QtStudio3D.OpenGL 2.4 |
Instantiates: | Q3DSViewerSettings |
Properties
- matteColor : QColor
- matteEnabled : bool
- scaleMode : enumeration
- showRenderStats : bool
Methods
- load(string group, string organization, string application)
- save(string group, string organization, string application)
Detailed Description
This type provides properties to define presentation-independent viewer settings.
Note: ViewerSettings are only applicable when Studio3D is used in the default mode, showing the final, composed image from the Qt 3D Studio renderer.
See also Studio3D.
Property Documentation
matteEnabled : bool |
Specifies if the empty area around the presentation (applicable when scaleMode is set to ScaleModeCenter or ScaleModeFit) should be filled with a custom color.
The default value is false
.
scaleMode : enumeration |
Specifies the scaling mode. The default value is
ScaleModeFill where the size of the presentation on-screen follows and fills the size of the output area (the window, the screen, or the area occupied by the Studio3D element).
During the design phase it can be valuable to see the presentation with some other scaling approach. For example, the Qt 3D Studio Viewer application uses ScaleModeCenter by default.
Constant | Description |
---|---|
ScaleModeFit | Scales the presentation to fit the output area. |
ScaleModeFill | Scales the presentation to completely fill the output area. |
ScaleModeCenter | Centers the presentation in the output area without scaling it. |
The default value is ScaleModeFill
.
showRenderStats : bool |
If this property is set to true
, the simple profile view is displayed in-scene, on top of the 3D content.
Note: this feature can be disabled at build time, in which case this property has no effect.
The default value is false
.
Method Documentation
Loads previously saved viewer settings using group, organization and application.
Persistently saves the viewer settings using group, organization and application.