QSGTextureProvider Class

QSGTextureProvider 类在 QML 中封装了基于纹理的实体。更多

头文件: #include <QSGTextureProvider>
CMake: find_package(Qt6 REQUIRED COMPONENTS Quick)
target_link_libraries(mytarget PRIVATE Qt6::Quick)
qmake: QT += quick
继承: QObject

公共函数

virtual QSGTexture *texture() const = 0

信号

详细说明

QSGTextureProvider 主要存在于场景图渲染线程中。

另请参阅 场景图 - 两个纹理提供程序。

成员函数文档

[pure virtual] QSGTexture *QSGTextureProvider::texture() const

返回纹理对象的指针。

[signal] void QSGTextureProvider::textureChanged()

纹理发生变化时会发出该信号。

© 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.