QSGDynamicTexture Class
La classe QSGDynamicTexture funge da classe base per le texture che cambiano dinamicamente, come i contenuti renderizzati su FBO. Per saperne di più...
| Intestazione: | #include <QSGDynamicTexture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| Eredita da: | QSGTexture |
Funzioni pubbliche
| QSGDynamicTexture() | |
| virtual bool | updateTexture() = 0 |
Descrizione dettagliata
Per aggiornare il contenuto della texture, chiamare esplicitament updateTexture().
Nota: tutte le classi con prefisso QSG devono essere utilizzate esclusivamente sul thread di rendering del grafo di scena. Per ulteriori informazioni, consultare Grafo di scena e rendering.
Documentazione sulle funzioni membro
[noexcept default] QSGDynamicTexture::QSGDynamicTexture()
Crea un'istanza di ` QSGDynamicTexture` con i valori predefiniti.
[pure virtual] bool QSGDynamicTexture::updateTexture()
Chiamare questa funzione per aggiornare esplicitamente la texture dinamica.
La funzione restituisce true se la texture è stata modificata a seguito dell'aggiornamento; in caso contrario, restituisce false.
Nota: questa funzione viene in genere chiamata da ` QQuickItem::updatePaintNode()` o ` QSGNode::preprocess()`, ovvero durante le fasi ` synchronization ` o ` node preprocessing ` dello scenegraph. Se la chiami in altri momenti, non è consigliabile e potrebbe portare a comportamenti inaspettati.
© 2026 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.