The following members of QML type AbstractGraph3D 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(弃用)
renderingMode : AbstractGraph3D . RenderingMode |
This property is deprecated. We strongly advise against using it in new code.
How the graph will be rendered. Defaults to
RenderIndirect
.
常量 | 描述 |
---|---|
RenderDirectToBackground
|
Indicates that the graph will be rendered directly on the window background and QML items are rendered on top of it. Using non-transparent QML item as a background will hide the graph. Clears the whole window before rendering the graph, including the areas outside the graph. If the surface format of the window supports antialiasing, it will be used (see
QtDataVisualization::qDefaultSurfaceFormat()
). This rendering mode offers the best performance at the expense of non-standard QML behavior. For example, the graphs do not obey the z ordering of QML items and the opacity value has no effect on them.
|
RenderDirectToBackground_NoClear
|
注意:
This will work exactly the same way as
|
RenderIndirect
|
Indicates the graph will be first rendered to an offscreen surface that is then drawn during normal QML item rendering. The rendered image is antialiased using the multisampling method if it is supported in the current environment and the msaaSamples property value is greater than zero. This rendering mode offers good quality and normal QML item behavior at the expense of performance. |
注意: Antialiasing is not supported in OpenGL ES2 environments in any rendering mode.
注意:
设置
抗锯齿
property of the graph does not do anything. However, it is set by the graph itself if the current rendering mode uses antialiasing.
另请参阅 msaaSamples .