[SailfishDevel] qml and opengl/c++

Thomas Perl th.perl at gmail.com
Tue Dec 17 11:16:13 UTC 2013


Hi,

2013/12/6 Wim de Vries <wsvries at xs4all.nl>:
> Some of you referred to the 'OpenGL Under QML'
> (http://qt-project.org/doc/qt-5.1/qtquick/scenegraph-openglunderqml.html)
> example.
> I got the example working in Sailfish.
> Only one problem.
> It doesn't show up within 'ApplicationWindow'. I have to comment
> ApplicationWindow{} out and use the Item as root element.
> Same problem to get it in 'Page'.
> Possibly there is already a Sailfish 'OpenGL Under QML'?

I've posted an example here to demonstrate how this would be done in theory:

    https://github.com/thp/harbour-opengl-in-qml

Obviously for a real application, you will have to make sure to stop
the timer when the window goes into the background, etc..

HTH :)
Thomas


More information about the Devel mailing list