Obsolete Members for AbstractGraph3D

QML 类型AbstractGraph3D的以下成员已被废弃。提供这些成员是为了确保旧源代码能够继续运行。我们强烈建议不要在新代码中使用它们。

属性

物业文件

renderingMode : AbstractGraph3D.RenderingMode [deprecated]

此属性已弃用。我们强烈建议不要在新代码中使用它。

图的渲染方式。默认值为RenderIndirect 。

常量描述
RenderDirectToBackground表示图形将直接渲染在窗口背景上,而 QML 项则渲染在其上方。如果使用不透明的 QML 项作为背景,则会遮盖图形。在渲染图形之前会清空整个窗口,包括图形外的区域。 如果窗口的表面格式支持抗锯齿,则会启用该功能(参见QtDataVisualization::qDefaultSurfaceFormat() )。此渲染模式能提供最佳性能,但会牺牲 QML 的标准行为。例如,图形不遵循 QML 项的 z 轴层级顺序,且不透明度值对其无效。
RenderDirectToBackground_NoClear

注意:这 在 Qt 6 中的工作方式与RenderDirectToBackground 完全相同,因为不再支持不清除窗口。

RenderIndirect表示图表将首先渲染到一个离屏表面,然后在正常的 QML 项渲染过程中进行绘制。如果当前环境支持多采样方法,且msaaSamples 属性值大于零,则渲染的图像将使用多采样方法进行抗锯齿处理。此渲染模式能提供良好的画质和正常的 QML 项行为,但会牺牲性能。

注意: 在 OpenGL ES2 环境中,无论采用何种渲染模式,均不支持抗锯齿 。

注意:设置 图的antialiasing 属性不会产生任何效果。但是,如果当前渲染模式使用抗锯齿,则该属性会由图本身自动设置。

另请参阅 msaaSamples 。


© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.