Obsolete Members for AbstractGraph3D
QML 类型AbstractGraph3D的以下成员已被弃用。提供它们是为了让旧源代码继续工作。我们强烈建议不要在新代码中使用它们。
属性
- renderingMode : AbstractGraph3D.RenderingMode
(deprecated)
属性文档
renderingMode : AbstractGraph3D.RenderingMode |
该属性已被弃用。我们强烈建议不要在新代码中使用它。
图形的渲染方式。默认为RenderIndirect
。
常量 | 说明 |
---|---|
RenderDirectToBackground | 表示图形将直接呈现在窗口背景上,而 QML 项目将呈现在其顶部。使用非透明的 QML 项目作为背景将隐藏图形。在渲染图形前清除整个窗口,包括图形以外的区域。如果窗口的表面格式支持抗锯齿,则会使用抗锯齿(请参阅QtDataVisualization::qDefaultSurfaceFormat() )。这种渲染模式提供了最佳性能,但却牺牲了非标准的 QML 行为。例如,图形不服从 QML 项的 Z 排序,不透明度值对图形也没有影响。 |
RenderDirectToBackground_NoClear | 注意: 这将与 |
RenderIndirect | 表示图形将首先渲染到屏幕外表面,然后在正常的 QML 项目渲染过程中绘制。如果当前环境支持多采样(multisampling)方法,且msaaSamples 属性值大于零,则渲染的图像将使用多采样(multisampling)方法进行抗锯齿处理。这种渲染模式提供了良好的质量和正常的 QML 项目行为,但牺牲了性能。 |
注: 在 OpenGL ES2 环境中,任何渲染模式都不支持反锯齿。
注: 设置图形的antialiasing
属性没有任何作用。但是,如果当前呈现模式使用抗锯齿,则图形本身会设置该属性。
另请参阅 msaaSamples 。
© 2025 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.