Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

opengl underlay

$
0
0
Yes. When you pass in the custom QSurfaceFormat to QQuickWindow’s setFormat() function, make sure that you have requested a stencil buffer by calling QSurfaceFormat::setStencilBufferSize(8). Qt Quick requiers the stencil buffer for some operations. Ideally, grab the surface format from QQuickWindow, make your changes to it and set it back. In your QQuickView subclass ctor do something like: MyQuickView::MyQuickView() : QQuickView() {     QSurfaceFormat f = format();     format.setVersion(...);     format.setProfile(...);     setFormat(f); } This way, the surface format will already be set up to have a stencil buffer.

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images