<div>Hello!<br></div><div><br></div><div>I've tried to make this example: <a href="http://doc.qt.io/qt-5/qtquick-scenegraph-openglunderqml-example.html">http://doc.qt.io/qt-5/qtquick-scenegraph-openglunderqml-example.html</a>. But the app shows only a label and a rectangle (the screenshot in attachments). Is it possible to use OpenGL on Sailfish? If yes how can I do it?<br></div><div><br></div><div>My opengl-test.cpp file:<br></div><div>```<br></div><div>#ifdef QT_QML_DEBUG<br></div><div>#include <QtQuick><br></div><div>#endif<br></div><div><br></div><div>#include <sailfishapp.h><br></div><div>#include <QGuiApplication><br></div><div>#include <QScopedPointer><br></div><div>#include <QQuickView><br></div><div>#include <QQmlContext><br></div><div><br></div><div>#include "squircle.h"<br></div><div><br></div><div>int main(int argc, char *argv[])<br></div><div>{<br></div><div>    qmlRegisterType<Squircle>("OpenGLUnderQML", 1, 0, "Squircle");<br></div><div><br></div><div>    QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));<br></div><div>    QScopedPointer<QQuickView> view(SailfishApp::createView());<br></div><div><br></div><div>    view->setResizeMode(QQuickView::SizeRootObjectToView);<br></div><div>    view->setSource(SailfishApp::pathTo("qml/opengl-test.qml"));<br></div><div>    view->show();<br></div><div><br></div><div>    return app->exec();<br></div><div>}<br></div><div>```<br></div><div><br></div><div>Regards,<br></div><div>
Petr<br></div><div> <a href="https://udmlug.wordpress.com/">Linux User Group Udmurtia</a><br></div>