Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/viewer3d.qml
Show All 21 Lines | 19 | Rectangle { | |||
---|---|---|---|---|---|
22 | Scene3D { | 22 | Scene3D { | ||
23 | id: scene3d | 23 | id: scene3d | ||
24 | anchors.fill: parent | 24 | anchors.fill: parent | ||
25 | focus: true | 25 | focus: true | ||
26 | aspects: ["input", "logic"] | 26 | aspects: ["input", "logic"] | ||
27 | cameraAspectRatioMode: Scene3D.AutomaticAspectRatio | 27 | cameraAspectRatioMode: Scene3D.AutomaticAspectRatio | ||
28 | AnimatedEntity { | 28 | AnimatedEntity { | ||
29 | id: entity | 29 | id: entity | ||
30 | onFpsChanged: { | | |||
31 | // print(fps) | | |||
32 | } | | |||
33 | } | 30 | } | ||
34 | 31 | | |||
35 | } | 32 | } | ||
36 | } | 33 | } | ||
37 | 34 | | |||
38 | Text { | 35 | Text { | ||
39 | objectName: "fileName" | 36 | objectName: "fileName" | ||
40 | id: fileName | 37 | id: fileName | ||
41 | text: "" | 38 | text: "" | ||
42 | onTextChanged: { | 39 | onTextChanged: { | ||
43 | entity.runLineMesh(text) | 40 | entity.runLineMesh(text) | ||
44 | } | 41 | } | ||
45 | } | 42 | } | ||
46 | } | 43 | } |