[SailfishDevel] opengl again..
Wim de Vries
wsvries at xs4all.nl
Thu Dec 5 08:56:02 UTC 2013
Thanks.
> 1) using QML writing C++ items to integrate into the scene graph (see
> http://qt-project.org/doc/qt-5.0/qtquick/qquickitem.html for the base
> class) - this also means you'll be able to use Silica in your application
> 2) using C++, instantiating a QWindow, and doing all your rendering by
> yourself (ideally using OpenGL ES) - something like
> http://qt-project.org/doc/qt-5.0/qtgui/openglwindow.html
Does this example run on Sailfish (it's now all QQuickView as mainwin in
SF)?
Very, very important, how do create a second GUI (QML) Window?
> 3) other, as-yet-to-be-finalised routes like doing *everything*
> yourself, using SDL, etc.
>
>> So it seems that only QML apps are supported, but I have no clue how
>> to add a QWindow in a QML app. There's an example in QtCreator "Scene
>> Graph - OpenGL under QML" but they use QQuickItem,
>> for OpenGL, so I still don't have a clue how to use OpenGL in a QML app.
>
> Your QML application has a C++ entry point (though if you're using
> something like qmlscene... you'll need to create such an entry point
> yourself) with your 'main' function. You can create a QWindow in
> there, and show it. You can hook into QML using Q_INVOKABLE methods to
> show it based on a clicked action on a Silica button, etc, etc, etc.
>
> I'd need more information to be able to really provide useful help here :)
>
>> Regards
>> João de Deus
>
> BR,
> Robin
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
regards
wim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131205/aff6658d/attachment.html>
More information about the Devel
mailing list