[osg-users] Qt Quick and Android

Wojtek Kowalski karcios at poczta.onet.pl
Wed Sep 20 00:26:17 PDT 2017


Hi,

I also fighting with qtquick/osg integration but on PC. (there are several issues that crash app).

But according to qtquick2osgitem solution:

Code:
...
renders only first frame, second and subsequent frames doesn't renders. 
...



you can try commenting lines in synchronize() function

Code:
h->viewer->advance();
h->viewer->eventTraversal();
h->viewer->updateTraversal();



and in render() comment

Code:
h->viewer->renderingTraversals();




and add instead in render()

Code:
h->viewer->frame();



frame() - calls those for 4 functions

and you have to call somewhere update() on QQuickItem, im doing this with QTimer

Code:
void OSGViewport::timerEvent(QTimerEvent *)
{
update();
}



and add somewhere

Code:
startTimer(50);




Please try it.

Regards,[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72015#72015







More information about the osg-users mailing list