-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
QDS 4.6.1
-
None
【Overview】
When specifying a QML component such as Rectangle as the source for a texture, the display does not update correctly in both 2D and 3D views.
【Steps to Reproduce】
- Set a Rectangle component as the texture source item.
- 2. Assign that texture to the base color of a material.
- 3. Apply the material to a model.
Textures are not displayed correctly in 2D and 3D views (they are displayed during rendering)
Textures are displayed at some point in 2D, but not immediately after setting.
【Expected Result】
The texture set as the source item should be correctly displayed in both 2D and 3D views.

Rectangle {
width: Constants.width
height: Constants.height color: Constants.backgroundColor View3D {
id: view3D
anchors.fill: parent environment: sceneEnvironment SceneEnvironment {
id: sceneEnvironment
antialiasingMode: SceneEnvironment.MSAA
antialiasingQuality: SceneEnvironment.High
} Node {
id: scene
DirectionalLight {
id: directionalLight
x: 255.038
y: 0
z: 0
eulerRotation.z: 0.00001
eulerRotation.y: 21.99319
eulerRotation.x: -0
} PerspectiveCamera {
id: sceneCamera
z: 350
} Model {
id: plane
source: "#Rectangle"
eulerRotation.z: 0
eulerRotation.y: -31.2744
eulerRotation.x: -32.41562
materials: defaultMaterial
} Model {
id: plane1
x: 0
y: -54.644
source: "#Rectangle"
z: 0
materials: defaultMaterial
}
}
} Item {
id: __materialLibrary__
PrincipledMaterial {
id: defaultMaterial
baseColorMap: _texture
objectName: "Default Material"
baseColor: "#ffffff"
} Texture {
id: _texture
objectName: "Texture"
sourceItem: rectangleAAA
} Rectangle {
id: rectangleAAA
width: 512
height: 512
color: "#ff6400"
}
} Text {
text: qsTr("Hello UntitledProject73")
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 100
font.family: Constants.font.family
}
}