File: pickable_sphere.qml

package info (click to toggle)
qt6-quick3d 6.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 143,588 kB
  • sloc: cpp: 395,989; ansic: 41,469; xml: 288; sh: 242; makefile: 32
file content (24 lines) | stat: -rw-r--r-- 522 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import QtQuick
import QtQuick3D
import QtQuick3D.Helpers

View3D {
    id: view
    objectName: "view"
    anchors.centerIn: parent
    width: 100
    height: 100
    environment: SceneEnvironment {
        backgroundMode: SceneEnvironment.Color
        clearColor: "green"
    }
    PerspectiveCamera { z: 600 }
    DirectionalLight { }
    Model {
        id: model1
        objectName: "model1"
        pickable: true
        geometry: SphereGeometry { radius: 200.0 }
        materials: PrincipledMaterial { }
    }
}