[Interest] [Qt3d] QSceneLoader in Thread
saifqaher94 at gmail.com
Wed Oct 10 14:00:43 CEST 2018
Currently I am trying to import a scene in my Qt3d application. The problem
is, when creating an instance from QSceneLoader and set the sources QUrl
then add it to an Entity, it freezes the application until it finishes the
importing. I tried to put it in thread like :
qDebug() << "Thread";
QAspectEngine* pAs = new QAspectEngine();
QRenderSettings *renderSettings = new QRenderSettings();
// Root entity
Qt3DCore::QEntity *sceneRoot2 = new Qt3DCore::QEntity();
Qt3DRender::QSceneLoader *sceneLoader = new Qt3DRender::QSceneLoader();
This fuction will run when the Qthread emit the started signal, but then i
got this : QObject::setParent: Cannot set parent, new parent is in a
So i do not know how to import a scene in qt3d without freezing the app,
can any one help please.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest