Obsolete Members for AbstractGraph3D

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 RenderDirectToBackground does in Qt 6 as not clearing the window is not supported anymore.

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 .