Test Quick3D app outside dev environement
-
I want to show a quick3D qml with qmlviewer in a laptop for a presentation.
How can I do that without installing dev environnement on this laptop?
(I copy all needed dll, however in qmlviewer I get module qt3D is not installed)
-
See my answer to the question "Qt dll deployment on windows":http://stackoverflow.com/questions/4047366/qt-dll-deployment-on-windows. And you have to start qmlviewer with the option -opengl.
-
On windows, you should create a folder with the contents:
./qmlviewer.exe
./Qt3D.dll
./Qt3DQuick.dll
./QtCore4.dll
./QtDeclarative4.dll
./QtGui4.dll
./QtNetwork4.dll
./QtOpenGL4.dll
./QtScript4.dll
./QtSql4.dll
./QtXmlPatterns4.dll
./Qt3D - folder from QTDIR/imports
./main.qml - Your presentation
./and other dependsIf you want to load .3ds scene, then add the folder:
./sceneformats - folder from QTDIR/pluginsFor example, main.qml:
@import QtQuick 1.1
import Qt3D 1.0
import Qt3D.Shapes 1.0Viewport {
width: 480; height: 320Teapot { effect: Effect { color: "gold" } }
}@
Now run Your presentation:
qmlviewer -opengl main.qml
Good luck!