Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
Qt3D TP2
-
4
Description
Currently to achieve anti-aliasing or other types of GL format specific effects, you need to specifically create these in the C++ wrapper which launches the QML app. But there is no documentation on how to do this.
From Kristen Eisenberg <kristen.eisenberg@yahoo.com>
1) Set DeclarativeView with OpenGL viewPort + QGLFormat (with options)
QDeclarativeView *view = new QDeclarativeView(); QGLFormat fmt = QGLFormat::defaultFormat(); fmt.setDoubleBuffer(true); fmt.setDirectRendering(true); fmt.setSampleBuffers(true); QGLWidget *glWidget = new QGLWidget(fmt); view->setViewport(_glWidget); view->setSource(file.qml);