English | Russian

Demo: Integrating OpenSceneGraph with Qt Quick

Thread

  • Thread for discussion 31277 [qt-project.org]

Screen shot

osgQtQuick: screen

Code fragment: qml

  1. import QtQuick 2.1
  2. import QtQuick.Controls 1.0
  3. import osgQtQuick 1.0
  4. ...
  5.     OSGNodeFile {
  6.         id: cessnaNode
  7.         source: "cessnafire.osg"
  8.     }
  9.  
  10.     OSGViewport {
  11.         id: fullview
  12.         anchors.fill: parent
  13.         sceneData: cessnaNode
  14.         color: "transparent"
  15.         opacity: 0.999
  16.         mode: OSGViewport.Buffer
  17.     }
  18. ...

Download

Or you can try to get the code via git:

  1. git clone git://podsvirov.pro/osg/osgqtquick.git

Dependencies

For this demo, I used:

  • Qt 5.1
  • OpenSceneGraph 3.2.0

Categories: