PySide6.QtGraphsWidgets.Q3DGraphsWidgetItem¶
- class Q3DGraphsWidgetItem¶
The
Q3DGraphsWidgetItem
class provides a window and render loop for graphs. More…Inherited by:
Q3DSurfaceWidgetItem
,Q3DScatterWidgetItem
,Q3DBarsWidgetItem
Synopsis¶
Properties¶
activeThemeᅟ
- Active theme of the graphambientLightStrengthᅟ
- Ambient light strength for the whole graphaspectRatioᅟ
- Ratio of the graph scaling between the longest axis on the horizontal plane and the y-axiscameraTargetPositionᅟ
- Camera target position as a vector or vertex in the 3D spacecameraXRotationᅟ
- X-rotation angle of the camera around the target point in degreescameraYRotationᅟ
- Y-rotation angle of the camera around the target point in degreescameraZoomLevelᅟ
- Camera zoom level in percentagecurrentFpsᅟ
- Rendering results for the last secondgridLineTypeᅟ
- Whether the grid lines type is Q3DGraphsWidgetItem::GridLineType::Shader or Q3DGraphsWidgetItem::GridLineType::GeometryhorizontalAspectRatioᅟ
- Ratio of the graph scaling between the x-axis and z-axislabelMarginᅟ
- This property specifies the margin for the placement of the axis labelslightColorᅟ
- Color for the ambient and specular lightlightStrengthᅟ
- Specular light strength for the whole graphlocaleᅟ
- Used for formatting various numeric labelsmarginᅟ
- Absolute value used for the space left between the edge of the plottable graph area and the edge of the graph backgroundmaxCameraXRotationᅟ
- Maximum X-rotation angle of the camera around the target point in degreesmaxCameraYRotationᅟ
- Maximum Y-rotation angle of the camera around the target point in degreesmaxCameraZoomLevelᅟ
- Maximum allowed camera zoom levelmeasureFpsᅟ
- Whether rendering is done continuously instead of on demandminCameraXRotationᅟ
- Minimum X-rotation angle of the camera around the target point in degreesminCameraYRotationᅟ
- Minimum Y-rotation angle of the camera around the target point in degreesminCameraZoomLevelᅟ
- Minimum allowed camera zoom levelmsaaSamplesᅟ
- Number of used samples in MSAAoptimizationHintᅟ
- Whether the default, static, or legacy mode is used for rendering optimizationorthoProjectionᅟ
- Whether orthographic projection is used for displaying the graphpolarᅟ
- Whether horizontal axes are changed into polar axesqueriedGraphPositionᅟ
- Latest queried graph position values along each axisradialLabelOffsetᅟ
- Normalized horizontal offset for the axis labels of the radial polar axisrotationEnabledᅟ
- Whether this input handler allows graph rotationsceneᅟ
- Q3DScene pointer that can be used to manipulate the scene and access the scene elementsselectedElementᅟ
- Element selected in the graphselectionEnabledᅟ
- Whether this input handler allows selection from the graphselectionModeᅟ
- Item selection modeshadowQualityᅟ
- Quality of the shadowshadowStrengthᅟ
- Shadow strength for the whole graphwrapCameraXRotationᅟ
- Behavior of the minimum and maximum limits in the X-rotationwrapCameraYRotationᅟ
- Behavior of the minimum and maximum limits in the Y-rotationzoomAtTargetEnabledᅟ
- Whether zooming should change the camera target so that the zoomed point of the graph stays at the same location after the zoomzoomEnabledᅟ
- Whether this input handler allows graph zooming
Methods¶
def
activeTheme()
def
addCustomItem()
def
addTheme()
def
aspectRatio()
def
cameraPreset()
def
clearSelection()
def
currentFps()
def
customItems()
def
doPicking()
def
gridLineType()
def
hasSeries()
def
isPolar()
def
isZoomEnabled()
def
labelMargin()
def
lightColor()
def
lightStrength()
def
locale()
def
margin()
def
measureFps()
def
msaaSamples()
def
releaseTheme()
def
renderToImage()
def
scene()
def
selectedAxis()
def
selectionMode()
def
setActiveTheme()
def
setAspectRatio()
def
setDragButton()
def
setLabelMargin()
def
setLightColor()
def
setLocale()
def
setMargin()
def
setMeasureFps()
def
setMsaaSamples()
def
setPolar()
def
setWidget()
def
setZoomEnabled()
def
shadowQuality()
def
shadowStrength()
def
themes()
def
widget()
Signals¶
def
doubleTapped()
def
dragged()
def
localeChanged()
def
longPressed()
def
marginChanged()
def
mouseMove()
def
pinch()
def
polarChanged()
def
tapped()
def
wheel()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
This class subclasses a QWindow and provides render loop for graphs inheriting it.
You should not need to use this class directly, but one of its subclasses instead.
Anti-aliasing is turned on by default on C++, except in OpenGL ES2 environments, where anti-aliasing is not supported by Qt Graphs. To specify non-default anti-aliasing for a graph, give a custom surface format as a constructor parameter. You can use the convenience function
qDefaultSurfaceFormat()
to create the surface format object.Note
Q3DGraphsWidgetItem
sets window flagQt::FramelessWindowHint
on by default. If you want to display graph windows as standalone windows with regular window frame, clear this flag after constructing the graph. For example:Q3DBarsWidgetItem *graphWindow = new Q3DBarsWidgetItem; graphWindow->setFlags(graphWindow->flags() ^ Qt::FramelessWindowHint);
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property activeThemeᅟ: QGraphsTheme¶
This property holds The active theme of the graph..
Sets
activeTheme
as the active theme to be used for the graph. Implicitly callsaddTheme()
to transfer the ownership of the theme to this graph.If
activeTheme
is null, a temporary default theme is created. This temporary theme is destroyed if any theme is explicitly set later. Properties of the theme can be modified even after setting it, and the modifications take effect immediately.- Access functions:
- property ambientLightStrengthᅟ: float¶
This property holds The ambient light strength for the whole graph..
This value determines how evenly and brightly the colors are shown throughout the graph regardless of the light position.
The value must be between
0.0f
and1.0f
.- Access functions:
- property aspectRatioᅟ: float¶
This property holds The ratio of the graph scaling between the longest axis on the horizontal plane and the y-axis..
Defaults to
2.0
.- Access functions:
- property cameraPresetᅟ: QtGraphs3D.CameraPreset¶
- Access functions:
This property holds The camera target position as a vector or vertex in the 3D space..
Defaults to
QVector3D(0.0, 0.0, 0.0)
.Valid coordinate values are between
-1.0...1.0
, where the edge values indicate the edges of the corresponding axis range. Any values outside this range are clamped to the edge.Note
For bar graphs, the Y-coordinate is ignored and camera always targets a point on the horizontal background.
- Access functions:
- property cameraXRotationᅟ: float¶
This property holds The X-rotation angle of the camera around the target point in degrees..
- Access functions:
- property cameraYRotationᅟ: float¶
This property holds The Y-rotation angle of the camera around the target point in degrees..
- Access functions:
- property cameraZoomLevelᅟ: float¶
This property holds The camera zoom level in percentage..
The default value of
100.0f
means there is no zoom in or out set in the camera. The value is limited by theminCameraZoomLevel
andmaxCameraZoomLevel
properties.See also
- Access functions:
- property currentFpsᅟ: int¶
This property holds The rendering results for the last second..
The results are stored in this read-only property when FPS measuring is enabled. It takes at least a second before this value is updated after measuring is activated.
See also
- Access functions:
Signal
currentFpsChanged()
- property gridLineTypeᅟ: QtGraphs3D.GridLineType¶
This property holds Whether the grid lines type is Q3DGraphsWidgetItem::GridLineType::Shader or Q3DGraphsWidgetItem::GridLineType::Geometry..
This value affects all grid lines.
- Access functions:
- property horizontalAspectRatioᅟ: float¶
This property holds The ratio of the graph scaling between the x-axis and z-axis..
The value of
0.0
indicates automatic scaling according to axis ranges. Defaults to0.0
.Has no effect on
Q3DBarsWidgetItem
, which handles scaling on the horizontal plane via thebarThickness
andbarSpacing
properties. Polar graphs also ignore this property.See also
- Access functions:
- property labelMarginᅟ: float¶
This property holds This property specifies the margin for the placement of the axis labels..
Negative values place the labels inside the plot-area while positive values place them outside the plot-area. Label automatic rotation is disabled when the value is negative. Defaults to
0.1
See also
- Access functions:
This property holds The color for the ambient and specular light..
This value affects the light specified in
Q3DScene
.- Access functions:
- property lightStrengthᅟ: float¶
This property holds The specular light strength for the whole graph..
The value must be between
0.0f
and10.0f
.This value affects the light specified in
Q3DScene
.- Access functions:
This property holds The locale used for formatting various numeric labels..
Defaults to the
"C"
locale.See also
- Access functions:
Signal
localeChanged()
- property marginᅟ: float¶
This property holds The absolute value used for the space left between the edge of the plottable graph area and the edge of the graph background..
If the margin value is negative, the margins are determined automatically and can vary according to the size of the items in the series and the type of the graph. The value is interpreted as a fraction of the y-axis range if the graph aspect ratios have not beed changed from the default values. Defaults to
-1.0
.Note
Setting a smaller margin for a scatter graph than the automatically determined margin can cause the scatter items at the edges of the graph to overlap with the graph background.
Note
On scatter and surface graphs, if the margin is small in comparison to the axis label size, the positions of the edge labels of the axes are adjusted to avoid overlap with the edge labels of the neighboring axes.
- Access functions:
Signal
marginChanged()
- property maxCameraXRotationᅟ: float¶
This property holds The maximum X-rotation angle of the camera around the target point in degrees..
- Access functions:
- property maxCameraYRotationᅟ: float¶
This property holds The maximum Y-rotation angle of the camera around the target point in degrees..
- Access functions:
- property maxCameraZoomLevelᅟ: float¶
This property holds The maximum allowed camera zoom level..
If the maximum level is set to a new value that is lower than the existing minimum level, the minimum level is adjusted to the new maximum as well. If the current
cameraZoomLevel
is outside the new bounds, it is adjusted as well. Defaults to500.0f
.See also
- Access functions:
- property measureFpsᅟ: bool¶
This property holds Whether rendering is done continuously instead of on demand..
If
true
, rendering is continuous and the value of thecurrentFps
property is updated. Defaults tofalse
.See also
- Access functions:
- property minCameraXRotationᅟ: float¶
This property holds The minimum X-rotation angle of the camera around the target point in degrees..
- Access functions:
- property minCameraYRotationᅟ: float¶
This property holds The minimum Y-rotation angle of the camera around the target point in degrees..
- Access functions:
- property minCameraZoomLevelᅟ: float¶
This property holds The minimum allowed camera zoom level..
If the minimum level is set to a new value that is higher than the existing maximum level, the maximum level is adjusted to the new minimum as well. If the current zoomLevel is outside the new bounds, it is adjusted as well. The minCameraZoomLevel cannot be set below
1.0f
. Defaults to10.0f
.See also
- Access functions:
- property msaaSamplesᅟ: int¶
This property holds The number of used samples in MSAA..
Sets the number of used MSAA samples to
samples
. The number of samples can be either 0, 2, 4, or 8.- Access functions:
- property optimizationHintᅟ: QtGraphs3D.OptimizationHint¶
This property holds Whether the default, static, or legacy mode is used for rendering optimization..
The default mode uses instanced rendering, and provides the full feature set at the best level of performance on most systems. The static mode optimizes graph rendering and is ideal for large non-changing data sets. It is slower with dynamic data changes and item rotations. Selection is not optimized, so using the static mode with massive data sets is not advisable. Static optimization works only on scatter graphs. Legacy mode renders all items in th graph individually, without instancing. It should be used only if default mode does not work, i.e. if the target system does not support instancing. Defaults to
Default
.Note
On some environments, large graphs using static optimization may not render, because all of the items are rendered using a single draw call, and different graphics drivers support different maximum vertice counts per call. This is mostly an issue on 32bit and OpenGL ES2 platforms. To work around this issue, choose an item mesh with a low vertex count or use the point mesh.
See also
- Access functions:
- property orthoProjectionᅟ: bool¶
This property holds Whether orthographic projection is used for displaying the graph..
Defaults to
false
.- Access functions:
- property polarᅟ: bool¶
This property holds Whether horizontal axes are changed into polar axes..
If
true
, the x-axis becomes the angular axis and the z-axis becomes the radial axis. Polar mode is not available for bar graphs.Defaults to
false
.See also
orthoProjection
radialLabelOffset
- Access functions:
Signal
polarChanged()
This property holds The latest queried graph position values along each axis..
This read-only property contains the results from
graphPositionQuery
. The values are normalized to the range[-1, 1]
. If the queried position was outside the graph bounds, the values will not reflect the real position, but will instead indicate an undefined position outside the range[-1, 1]
. The value will be undefined until a query is made.There is no single correct 3D coordinate to match a particular screen position, so to be consistent, the queries are always done against the inner sides of an invisible box surrounding the graph.
Note
Bar graphs only allow querying graph position at the graph floor level, so the y-value is always zero for bar graphs and the valid queries can be only made at screen positions that contain the floor of the graph.
See also
- Access functions:
- property radialLabelOffsetᅟ: float¶
This property holds The normalized horizontal offset for the axis labels of the radial polar axis..
The value
0.0
indicates that the labels should be drawn next to the 0-angle angular axis grid line. The value1.0
indicates that the labels are drawn in their usual place at the edge of the graph background. Defaults to1.0
.This property is ignored if the
polar
property value isfalse
.See also
polar
- Access functions:
- property rotationEnabledᅟ: bool¶
This property holds Whether this input handler allows graph rotation..
Defaults to
true
.- Access functions:
This property holds The
Q3DScene
pointer that can be used to manipulate the scene and access the scene elements..This property is read-only.
- Access functions:
- property selectedElementᅟ: QtGraphs3D.ElementType¶
This property holds The element selected in the graph..
This property can be used to query the selected element type. The type is valid until a new selection is made in the graph and the
selectedElementChanged
signal is emitted.The signal can be used for example for implementing custom input handlers, as demonstrated in the Graph Gallery example under Scatter Graph tab.
- Access functions:
- property selectionEnabledᅟ: bool¶
This property holds Whether this input handler allows selection from the graph..
Defaults to
true
.- Access functions:
- property selectionModeᅟ: Combination of QtGraphs3D.SelectionFlag¶
This property holds Item selection mode..
A combination of SelectionFlags. By default,
Item
. Different graph types support different selection modes.See also
SelectionFlags
- Access functions:
- property shadowQualityᅟ: QtGraphs3D.ShadowQuality¶
This property holds The quality of the shadow..
One of the ShadowQuality enum values. By default,
Medium
.Note
If setting the shadow quality to a certain level fails, the level is lowered until it is successfully set. The
shadowQualityChanged
signal is emitted each time a change is made.See also
ShadowQuality
- Access functions:
- property shadowStrengthᅟ: float¶
This property holds The shadow strength for the whole graph..
The higher the number, the darker the shadows will be. The value must be between
0.0
and100.0
.This value affects the light specified in
Q3DScene
.- Access functions:
- property wrapCameraXRotationᅟ: bool¶
This property holds The behavior of the minimum and maximum limits in the X-rotation..
If set to
true
, the X-rotation of the camera is wrapped from minimum to maximum and from maximum to minimum. If set tofalse
, the X-rotation of the camera is limited to the sector determined by the minimum and maximum values. Set totrue
by default.- Access functions:
- property wrapCameraYRotationᅟ: bool¶
This property holds The behavior of the minimum and maximum limits in the Y-rotation..
If
true
, the Y-rotation of the camera is wrapped from minimum to maximum and from maximum to minimum. Iffalse
, the Y-rotation of the camera is limited to the sector determined by the minimum and maximum values. Set totrue
by default.- Access functions:
- property zoomAtTargetEnabledᅟ: bool¶
This property holds Whether zooming should change the camera target so that the zoomed point of the graph stays at the same location after the zoom..
Defaults to
true
.- Access functions:
- property zoomEnabledᅟ: bool¶
This property holds Whether this input handler allows graph zooming..
Defaults to
true
.- Access functions:
- activeTheme()¶
- Return type:
See also
Getter of property
activeThemeᅟ
.- activeThemeChanged(activeTheme)¶
- Parameters:
activeTheme –
QGraphsTheme
Notification signal of property
activeThemeᅟ
.- addCustomItem(item)¶
- Parameters:
item –
QCustom3DItem
- Return type:
int
Adds a
QCustom3DItem
item
to the graph. Graph takes ownership of the added item.Returns the index to the added item if the add operation was successful, -1 if trying to add a null item, and the index of the item if trying to add an already added item.
Items are rendered in the order they have been inserted. The rendering order needs to be taken into account when having solid and transparent items.
- addTheme(theme)¶
- Parameters:
theme –
QGraphsTheme
Adds the given
theme
to the graph. The themes added via addTheme are not taken in to use directly. Only the ownership of the theme is given to the graph. Thetheme
must not be null or already added to another graph.See also
- ambientLightStrength()¶
- Return type:
float
See also
Getter of property
ambientLightStrengthᅟ
.- ambientLightStrengthChanged()¶
Notification signal of property
ambientLightStrengthᅟ
.- aspectRatio()¶
- Return type:
float
See also
Getter of property
aspectRatioᅟ
.- aspectRatioChanged(ratio)¶
- Parameters:
ratio – float
Notification signal of property
aspectRatioᅟ
.- cameraPreset()¶
- Return type:
See also
Getter of property
cameraPresetᅟ
.- cameraPresetChanged(preset)¶
- Parameters:
preset –
CameraPreset
Notification signal of property
cameraPresetᅟ
.- cameraTargetPosition()¶
- Return type:
See also
Getter of property
cameraTargetPositionᅟ
.Notification signal of property
cameraTargetPositionᅟ
.- cameraXRotation()¶
- Return type:
float
See also
Getter of property
cameraXRotationᅟ
.- cameraXRotationChanged(rotation)¶
- Parameters:
rotation – float
Notification signal of property
cameraXRotationᅟ
.- cameraYRotation()¶
- Return type:
float
See also
Getter of property
cameraYRotationᅟ
.- cameraYRotationChanged(rotation)¶
- Parameters:
rotation – float
Notification signal of property
cameraYRotationᅟ
.- cameraZoomLevel()¶
- Return type:
float
See also
Getter of property
cameraZoomLevelᅟ
.- cameraZoomLevelChanged(zoomLevel)¶
- Parameters:
zoomLevel – float
Notification signal of property
cameraZoomLevelᅟ
.- clearSelection()¶
Clears selection from all attached series.
- currentFps()¶
- Return type:
int
Getter of property
currentFpsᅟ
.- currentFpsChanged(fps)¶
- Parameters:
fps – int
Notification signal of property
currentFpsᅟ
.- customItems()¶
- Return type:
.list of QCustom3DItem
Returns the list of all added custom items.
See also
- doubleTapped(eventPoint, button)¶
- Parameters:
eventPoint –
QEventPoint
button –
MouseButton
- gridLineType()¶
- Return type:
See also
Getter of property
gridLineTypeᅟ
.- gridLineTypeChanged()¶
Notification signal of property
gridLineTypeᅟ
.- hasSeries(series)¶
- Parameters:
series –
QAbstract3DSeries
- Return type:
bool
Returns whether the
series
has already been added to the graph.- horizontalAspectRatio()¶
- Return type:
float
See also
Getter of property
horizontalAspectRatioᅟ
.- horizontalAspectRatioChanged(ratio)¶
- Parameters:
ratio – float
Notification signal of property
horizontalAspectRatioᅟ
.- isOrthoProjection()¶
- Return type:
bool
Getter of property
orthoProjectionᅟ
.- isPolar()¶
- Return type:
bool
Getter of property
polarᅟ
.- isRotationEnabled()¶
- Return type:
bool
Getter of property
rotationEnabledᅟ
.- isSelectionEnabled()¶
- Return type:
bool
Getter of property
selectionEnabledᅟ
.- isZoomAtTargetEnabled()¶
- Return type:
bool
Getter of property
zoomAtTargetEnabledᅟ
.- isZoomEnabled()¶
- Return type:
bool
Getter of property
zoomEnabledᅟ
.- labelMargin()¶
- Return type:
float
See also
Getter of property
labelMarginᅟ
.- labelMarginChanged(margin)¶
- Parameters:
margin – float
Notification signal of property
labelMarginᅟ
.- lightColor()¶
- Return type:
See also
Getter of property
lightColorᅟ
.- lightColorChanged()¶
Notification signal of property
lightColorᅟ
.- lightStrength()¶
- Return type:
float
See also
Getter of property
lightStrengthᅟ
.- lightStrengthChanged()¶
Notification signal of property
lightStrengthᅟ
.- locale()¶
- Return type:
See also
Getter of property
localeᅟ
.Notification signal of property
localeᅟ
.- longPressed()¶
- margin()¶
- Return type:
float
See also
Getter of property
marginᅟ
.- marginChanged(margin)¶
- Parameters:
margin – float
Notification signal of property
marginᅟ
.- maxCameraXRotation()¶
- Return type:
float
See also
Getter of property
maxCameraXRotationᅟ
.- maxCameraXRotationChanged(rotation)¶
- Parameters:
rotation – float
Notification signal of property
maxCameraXRotationᅟ
.- maxCameraYRotation()¶
- Return type:
float
See also
Getter of property
maxCameraYRotationᅟ
.- maxCameraYRotationChanged(rotation)¶
- Parameters:
rotation – float
Notification signal of property
maxCameraYRotationᅟ
.- maxCameraZoomLevel()¶
- Return type:
float
See also
Getter of property
maxCameraZoomLevelᅟ
.- maxCameraZoomLevelChanged(zoomLevel)¶
- Parameters:
zoomLevel – float
Notification signal of property
maxCameraZoomLevelᅟ
.- measureFps()¶
- Return type:
bool
See also
Getter of property
measureFpsᅟ
.- measureFpsChanged(enabled)¶
- Parameters:
enabled – bool
Notification signal of property
measureFpsᅟ
.- minCameraXRotation()¶
- Return type:
float
See also
Getter of property
minCameraXRotationᅟ
.- minCameraXRotationChanged(rotation)¶
- Parameters:
rotation – float
Notification signal of property
minCameraXRotationᅟ
.- minCameraYRotation()¶
- Return type:
float
See also
Getter of property
minCameraYRotationᅟ
.- minCameraYRotationChanged(rotation)¶
- Parameters:
rotation – float
Notification signal of property
minCameraYRotationᅟ
.- minCameraZoomLevel()¶
- Return type:
float
See also
Getter of property
minCameraZoomLevelᅟ
.- minCameraZoomLevelChanged(zoomLevel)¶
- Parameters:
zoomLevel – float
Notification signal of property
minCameraZoomLevelᅟ
.- msaaSamples()¶
- Return type:
int
See also
Getter of property
msaaSamplesᅟ
.- msaaSamplesChanged(samples)¶
- Parameters:
samples – int
Notification signal of property
msaaSamplesᅟ
.- optimizationHint()¶
- Return type:
See also
Getter of property
optimizationHintᅟ
.- optimizationHintChanged(hint)¶
- Parameters:
hint –
OptimizationHint
Notification signal of property
optimizationHintᅟ
.- orthoProjectionChanged(enabled)¶
- Parameters:
enabled – bool
Notification signal of property
orthoProjectionᅟ
.- pinch(delta)¶
- Parameters:
delta – float
- polarChanged(enabled)¶
- Parameters:
enabled – bool
Notification signal of property
polarᅟ
.Getter of property
queriedGraphPositionᅟ
.Notification signal of property
queriedGraphPositionᅟ
.- radialLabelOffset()¶
- Return type:
float
See also
Getter of property
radialLabelOffsetᅟ
.- radialLabelOffsetChanged(offset)¶
- Parameters:
offset – float
Notification signal of property
radialLabelOffsetᅟ
.- releaseCustomItem(item)¶
- Parameters:
item –
QCustom3DItem
Gets ownership of given
item
back and removes theitem
from the graph.Note
If the same item is added back to the graph, the texture or the texture file needs to be re-set.
See also
- releaseTheme(theme)¶
- Parameters:
theme –
QGraphsTheme
Releases the ownership of the
theme
back to the caller, if it was added to this graph. If the releasedtheme
is in use, a new default theme will be created and set active.If the default theme is released and added back later, it behaves as any other theme would.
See also
- removeCustomItem(item)¶
- Parameters:
item –
QCustom3DItem
Removes the custom
item
. Deletes the resources allocated to it.Removes all custom items at
position
. Deletes the resources allocated to them.- removeCustomItems()¶
Removes all custom items. Deletes the resources allocated to them.
Renders current frame to an image of
imageSize
. Returns a shared pointer to grab result which can be used to access the rendered image when it’s ready. Image is rendered with the current antialiasing settings.Note
OpenGL ES2 does not support anitialiasing.
See also
grabToImage
- rotationEnabledChanged(enable)¶
- Parameters:
enable – bool
Notification signal of property
rotationEnabledᅟ
.Getter of property
sceneᅟ
.- selectedAxis()¶
- Return type:
Can be used to get the selected axis after receiving
selectedElementChanged
signal with any label type. Selection is valid until the nextselectedElementChanged
signal.Returns the pointer to the selected axis, or null.
See also
- selectedCustomItem()¶
- Return type:
Can be used to get the selected custom item after receiving
selectedElementChanged
signal with Q3DGraphsWidgetItem::ElementType::CustomItem type. Ownership of the item remains with the graph. Selection is valid until the nextselectedElementChanged
signal.Returns the pointer to the selected custom item, or null.
See also
- selectedCustomItemIndex()¶
- Return type:
int
Can be used to query the index of the selected custom item after receiving
selectedElementChanged
signal with Q3DGraphsWidgetItem::ElementType::CustomItem type. Selection is valid until the nextselectedElementChanged
signal.Returns the index of the selected custom item, or -1.
See also
- selectedElement()¶
- Return type:
Getter of property
selectedElementᅟ
.- selectedElementChanged(type)¶
- Parameters:
type –
ElementType
Notification signal of property
selectedElementᅟ
.- selectedLabelIndex()¶
- Return type:
int
Can be used to query the index of the selected label after receiving
selectedElementChanged
signal with any label type. Selection is valid until the nextselectedElementChanged
signal.Returns the index of the selected label, or -1.
See also
- selectionEnabledChanged(enable)¶
- Parameters:
enable – bool
Notification signal of property
selectionEnabledᅟ
.- selectionMode()¶
- Return type:
Combination of
SelectionFlag
See also
Getter of property
selectionModeᅟ
.- selectionModeChanged(selectionMode)¶
- Parameters:
selectionMode – Combination of
SelectionFlag
Notification signal of property
selectionModeᅟ
.- setActiveTheme(activeTheme)¶
- Parameters:
activeTheme –
QGraphsTheme
See also
Setter of property
activeThemeᅟ
.- setAmbientLightStrength(newAmbientLightStrength)¶
- Parameters:
newAmbientLightStrength – float
See also
Setter of property
ambientLightStrengthᅟ
.- setAspectRatio(ratio)¶
- Parameters:
ratio – float
See also
Setter of property
aspectRatioᅟ
.- setCameraPosition(horizontal, vertical[, zoom=100.0f])¶
- Parameters:
horizontal – float
vertical – float
zoom – float
Utility function that sets the camera rotations and distance.``horizontal`` and
vertical
define the camera rotations to be used. Optionalzoom
parameter can be given to set the zoom percentage of the camera within the bounds defined byminCameraZoomLevel
andmaxCameraZoomLevel
properties.- setCameraPreset(preset)¶
- Parameters:
preset –
CameraPreset
See also
Setter of property
cameraPresetᅟ
.Setter of property
cameraTargetPositionᅟ
.- setCameraXRotation(rotation)¶
- Parameters:
rotation – float
See also
Setter of property
cameraXRotationᅟ
.- setCameraYRotation(rotation)¶
- Parameters:
rotation – float
See also
Setter of property
cameraYRotationᅟ
.- setCameraZoomLevel(level)¶
- Parameters:
level – float
See also
Setter of property
cameraZoomLevelᅟ
.- setDefaultInputHandler()¶
- setDragButton(button)¶
- Parameters:
button – Combination of
MouseButton
- setGridLineType(gridLineType)¶
- Parameters:
gridLineType –
GridLineType
See also
Setter of property
gridLineTypeᅟ
.- setHorizontalAspectRatio(ratio)¶
- Parameters:
ratio – float
See also
Setter of property
horizontalAspectRatioᅟ
.- setLabelMargin(margin)¶
- Parameters:
margin – float
See also
Setter of property
labelMarginᅟ
.Setter of property
lightColorᅟ
.- setLightStrength(newLightStrength)¶
- Parameters:
newLightStrength – float
See also
Setter of property
lightStrengthᅟ
.Setter of property
localeᅟ
.Setter of property
marginᅟ
.- setMaxCameraXRotation(rotation)¶
- Parameters:
rotation – float
See also
Setter of property
maxCameraXRotationᅟ
.- setMaxCameraYRotation(rotation)¶
- Parameters:
rotation – float
See also
Setter of property
maxCameraYRotationᅟ
.- setMaxCameraZoomLevel(level)¶
- Parameters:
level – float
See also
Setter of property
maxCameraZoomLevelᅟ
.- setMeasureFps(enable)¶
- Parameters:
enable – bool
See also
Setter of property
measureFpsᅟ
.- setMinCameraXRotation(rotation)¶
- Parameters:
rotation – float
See also
Setter of property
minCameraXRotationᅟ
.- setMinCameraYRotation(rotation)¶
- Parameters:
rotation – float
See also
Setter of property
minCameraYRotationᅟ
.- setMinCameraZoomLevel(level)¶
- Parameters:
level – float
See also
Setter of property
minCameraZoomLevelᅟ
.- setMsaaSamples(samples)¶
- Parameters:
samples – int
See also
Setter of property
msaaSamplesᅟ
.- setOptimizationHint(hint)¶
- Parameters:
hint –
OptimizationHint
See also
Setter of property
optimizationHintᅟ
.- setOrthoProjection(enable)¶
- Parameters:
enable – bool
See also
Setter of property
orthoProjectionᅟ
.Setter of property
polarᅟ
.- setRadialLabelOffset(offset)¶
- Parameters:
offset – float
See also
Setter of property
radialLabelOffsetᅟ
.- setRotationEnabled(enable)¶
- Parameters:
enable – bool
See also
Setter of property
rotationEnabledᅟ
.- setSelectionEnabled(enable)¶
- Parameters:
enable – bool
See also
Setter of property
selectionEnabledᅟ
.- setSelectionMode(selectionMode)¶
- Parameters:
selectionMode – Combination of
SelectionFlag
See also
Setter of property
selectionModeᅟ
.- setShadowQuality(shadowQuality)¶
- Parameters:
shadowQuality –
ShadowQuality
See also
Setter of property
shadowQualityᅟ
.- setShadowStrength(newShadowStrength)¶
- Parameters:
newShadowStrength – float
See also
Setter of property
shadowStrengthᅟ
.- setWidget(widget)¶
- Parameters:
widget –
QQuickWidget
- setWrapCameraXRotation(wrap)¶
- Parameters:
wrap – bool
See also
Setter of property
wrapCameraXRotationᅟ
.- setWrapCameraYRotation(wrap)¶
- Parameters:
wrap – bool
See also
Setter of property
wrapCameraYRotationᅟ
.- setZoomAtTargetEnabled(enable)¶
- Parameters:
enable – bool
See also
Setter of property
zoomAtTargetEnabledᅟ
.- setZoomEnabled(enable)¶
- Parameters:
enable – bool
See also
Setter of property
zoomEnabledᅟ
.- shadowQuality()¶
- Return type:
See also
Getter of property
shadowQualityᅟ
.- shadowQualityChanged(quality)¶
- Parameters:
quality –
ShadowQuality
Notification signal of property
shadowQualityᅟ
.- shadowStrength()¶
- Return type:
float
See also
Getter of property
shadowStrengthᅟ
.- shadowStrengthChanged()¶
Notification signal of property
shadowStrengthᅟ
.- tapped(eventPoint, button)¶
- Parameters:
eventPoint –
QEventPoint
button –
MouseButton
- themes()¶
- Return type:
.list of QGraphsTheme
Returns the list of all added themes.
See also
- unsetDefaultDragHandler()¶
- unsetDefaultInputHandler()¶
- unsetDefaultPinchHandler()¶
- unsetDefaultTapHandler()¶
- unsetDefaultWheelHandler()¶
- wheel(event)¶
- Parameters:
event –
QWheelEvent
- widget()¶
- Return type:
- wrapCameraXRotation()¶
- Return type:
bool
See also
Getter of property
wrapCameraXRotationᅟ
.- wrapCameraXRotationChanged(wrap)¶
- Parameters:
wrap – bool
Notification signal of property
wrapCameraXRotationᅟ
.- wrapCameraYRotation()¶
- Return type:
bool
See also
Getter of property
wrapCameraYRotationᅟ
.- wrapCameraYRotationChanged(wrap)¶
- Parameters:
wrap – bool
Notification signal of property
wrapCameraYRotationᅟ
.- zoomAtTargetEnabledChanged(enable)¶
- Parameters:
enable – bool
Notification signal of property
zoomAtTargetEnabledᅟ
.- zoomEnabledChanged(enable)¶
- Parameters:
enable – bool
Notification signal of property
zoomEnabledᅟ
.