Obsolete Members for Shape

The following members of QML type Shape 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

特性

特性文档编制

vendorExtensionsEnabled : bool

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This property controls the usage of non-standard OpenGL extensions like GL_NV_path_rendering .

默认值为 false .

As of Qt 5.12 Shape.NvprRenderer is disabled by default and a uniform behavior, based on triangulating the path and generating QSGGeometryNode instances, is used regardless of the graphics card and drivers. To enable using vendor-specific path rendering approaches set the value to true . Depending on the platform and content, this can lead to improved performance. Setting the value to true is safe in any case since rendering falls back to the default method when the vendor-specific approach, such as GL_NV_path_rendering , is not supported at run time.

Changing the default value (false) is not recommended. In particular, support for Shape.NvprRenderer will not be available in future Qt versions. Applications experiencing rendering problems with the property set to true are advised to set it to false.