The following members of QML type Shape 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
|
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.