OsgQtQuick-Demo

From Qt Wiki
Jump to: navigation, search


English | Russian

Demo: Integrating OpenSceneGraph with Qt Quick

Thread

  • Thread for discussion 31277

Screen shot

osgqtquick.git;a=blob_plain;f=screen.png;h=de5783018a44d40ebad8f65b402c1f42f282be30;hb=HEAD.png

Code fragment: qml

import QtQuick 2.1
import QtQuick.Controls 1.0
import osgQtQuick 1.0
…
 OSGNodeFile {
 id: cessnaNode
 source: "cessnafire.osg"
 }
 
OSGViewport {
 id: fullview
 anchors.fill: parent
 sceneData: cessnaNode
 color: "transparent"
 opacity: 0.999
 mode: OSGViewport.Buffer
 }

Download

Or you can try to get the code via git:

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

Dependencies

For this demo, I used:

  • Qt 5.1