Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Scene3DView is not a type

Scene3DView is not a type

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 236 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dogbear
    wrote on last edited by
    #1

    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 type
    

    Does Scene3DView no longer exist in Qt6? Has it been moved to a different module? Am I missing something stupidly simple?

    Many thanks in advance.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved