QtCreator doesn't show 3D Studio Project
-
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!