Scene3DView is not a type
-
Before I start pulling my hair out, I thought I might try asking for help here.
On a Fedora 36 installation with a stock Qt5 installation, the following code for the main.qml works with no issues.
import QtQuick 2.12 import QtQuick.Layouts 1.15 import QtQuick.Window 2.12 import QtQuick.Scene3D 2.15 Window { id: mainWindow width: 840 height: 840 visible: true title: qsTr("My 3D World") color: "blue" Scene3D { id: mainScene anchors.fill: parent compositingMode: Scene3D.FBO } Scene3DView { id: viewport x: 5 y: 5 width: parent.width * 0.80 height: parent.height * 0.80 scene3D: mainScene MyScene { id: myscene } } }On Windoze 10 however, with versions Qt 6.2.4, 6.3.1, and 6.4 I get this runtime error:
QQmlApplicationEngine failed to load component qrc:/main.qml:20:5: Scene3DView is not a typeDoes Scene3DView no longer exist in Qt6? Has it been moved to a different module? Am I missing something stupidly simple?
Many thanks in advance.