Revision control
Copy as Markdown
import QtQuick
import QtQuick3D
View3D {
width: 640
height: 480
id: view1
anchors.fill: parent
PerspectiveCamera {
id: camera1
}
Texture {
sourceItem: Rectangle {
width: 256
height: 256
color: "red"
}
}
Texture {
sourceItem: Rectangle {
width: 200
height: 200
color: "blue"
Text {
anchors.centerIn: parent
text: "test"
}
}
}
Rectangle {
id: item1
width: 100
height: 100
color: "green"
}
Texture {
sourceItem: item1
}
}