opengl 3.3 breaking qquick 2 qt project forums qt project
I am having trouble setting the version of OpenGL to use to 3.3. I have started a new “Qt Quick 2 Application (Built-in Elements)” from Qt Creator and sub-classed the QtQuick2ApplicationViewer so that I can set the QSurfaceFormat as so:
QSurfaceFormat format;
format.setMajorVersion(3);
format.setMajorVersion(3);
format.setStencilBufferSize(4);
format.setProfile(QSurfaceFormat::CompatibilityProfile);
setFormat(format);
If I run the application nothing is rendered to the window. However, if I change the version to 3.2 or 4.0 then everything seems to render properly. My dev machine is running Ubuntu 13.04 and glxinfo reports:
Source