QmlDesigner: Improve usage of QML items as quick3d textures

Quick3D Texture elements require some window signals to show QML item
as texture, so we fake them to make textures appear in form editor
and state preview. To prevent texture mirroring, flipV value
is force set at proxy creation. To keep state preview up to date,
we trigger multiple render passes if there are any QML items used
as texture sources in quick3D textures.

Task-number: QDS-2290
Change-Id: I16c34aad943213c0b737fdb073333be3bbd40f2d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2020-06-17 15:54:41 +03:00
parent c6b9a03b39
commit 60ff6b6577
12 changed files with 203 additions and 1 deletions
@@ -61,6 +61,7 @@ namespace Internal {
class QmlStateNodeInstance;
class QuickItemNodeInstance;
class Quick3DNodeInstance;
class Quick3DTextureNodeInstance;
}
class ServerNodeInstance
@@ -84,6 +85,7 @@ class ServerNodeInstance
friend class QmlDesigner::Internal::QmlPropertyChangesNodeInstance;
friend class QmlDesigner::Internal::QmlStateNodeInstance;
friend class QmlDesigner::Internal::Quick3DNodeInstance;
friend class QmlDesigner::Internal::Quick3DTextureNodeInstance;
public:
enum ComponentWrap {