November 14, 2011

rickpier rickpier
Lab Rat
1 posts

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)

2 replies

April 26, 2012

hmuelner hmuelner
Lab Rat
30 posts

See my answer to the question Qt dll deployment on windows [stackoverflow.com]. And you have to start qmlviewer with the option -opengl.

 Signature 

Helmut Mülner

April 27, 2012

Konstantin Podsvirov Konstantin Podsvirov
Hobby Entomologist
95 posts

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 depends

If you want to load .3ds scene, then add the folder:
./sceneformats – folder from QTDIR/plugins

For example, main.qml:

  1. import QtQuick 1.1
  2. import Qt3D 1.0
  3. import Qt3D.Shapes 1.0
  4.  
  5. Viewport {
  6.     width: 480; height: 320
  7.  
  8.     Teapot {
  9.         effect: Effect {
  10.             color: "gold"
  11.         }
  12.     }
  13. }

Now run Your presentation:
> qmlviewer -opengl main.qml

Good luck!

 
  ‹‹ [solved] MouseArea onReleased signal lost after hiding presented view      translations in QML files ››

You must log in to post a reply. Not a member yet? Register here!