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

Images disappearing when using translucent OpenGL background

$
0
0
Hi there, I’m working on a little project where I want to display some sort of slideshow on a translucent background. First it was a pain to find out how to get the background of the window translucent, but when I finally did, the images were disappearing as soon as they where opaque. I’m new to the whole Qt/QML thingy and am kinda stuck in solving this. When I set the opacity of the image to 1, it seems the image is put behind the other objects. When I change the opacity to let’s say 0.999999 it appears correctly in the place where I expect it to be. I set the format using this code viewer.setSurfaceType(QSurface::OpenGLSurface);   QSurfaceFormat format; format.setAlphaBufferSize(8); format.setRenderableType(QSurfaceFormat::OpenGLES);   viewer.setFormat(format); viewer.setColor("transparent"); viewer.setClearBeforeRendering(true); Does anyone else recognize this problem, and possibly have a solution? :-) Thanks, Rogier

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images