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. QtCreator doesn't show 3D Studio Project
Qt 6.11 is out! See what's new in the release blog

QtCreator doesn't show 3D Studio Project

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 165 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.
  • J Offline
    J Offline
    J_Weihele
    wrote on last edited by
    #1

    Hello Everybody!

    I'm a bit of lost atm and I hope you can help me.
    I'm trying to import my 3D Studio Project into QtCreator. And regarding to the fact, that I'm pretty new in working with Qt, I followed a Internet-Tutorial.

    According to the tutorial, the 3D - Project should be seen now, as soon as I build the QtCreator Project.

    But it doesn't work! Doesn't matter what I've been trying to Change, it only shows a Lightgrey Rectangle without my Project.

    In the Designer Mode the Studio 3D - ID (s3d) was created, but the Presentation - ID ( s3dpres), which is a child of s3d, is not available.

    Already changed the QML Emulation Layer to "Use QML Emulation Layer that is built….."
    but I didn't know what to enter at the Top Level Build path, so I left it empty.

    Working with Qt 5.12.2 and MSVC 2017 64Bit

    main.qml:

    import QtQuick 2.12
    import QtQuick.Window 2.12
    import QtStudio3D 2.3
    
        Rectangle {
        id: root
        color: "lightGrey"
    
    
        Studio3D {
            id: s3d
            focus: true
            anchors.margins: 0
            anchors.fill: parent
    
            Presentation {
                id: s3dpres
                source: "file:/Users/ll_stjsweih/Documents/Qt3DStudio_Integration/Adrivell_Project3/Cluster/presentations/Adrivell_Project3.uip"
    
                SceneElement {
                    id: scene
                    elementPath: "Scene"
                    currentSlideIndex: 2
                }
    
            }
    
            onRunningChanged: {
                console.log("Presentation ready!");
    
            }
        }
    
    }
    
    

    main.cpp:

    #include <QtWidgets/QApplication>
    #include <QQuickView>
    #include <QSurfaceFormat>
    #include <Qt3DStudioRuntime2/q3dsruntimeglobal.h>
    #include <Q3DSPresentation>
    
    int main(int argc, char *argv[])
    {
    
        qputenv("QSG_INFO", "1");
        QApplication app(argc, argv);
    
        QSurfaceFormat::setDefaultFormat(Q3DS::surfaceFormat());
    
        QQuickView viewer;
        viewer.setSource(QUrl("file:/Users/ll_stjsweih/Documents/Qt3DStudio_Integration/main.qml"));
    
        viewer.setTitle(QStringLiteral("Digitales Cockpit"));
        viewer.setResizeMode(QQuickView::SizeRootObjectToView);
        viewer.resize(1280, 480);
        viewer.show();
    
    
        return app.exec();
    }
    
    

    I hope you can help.

    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