I have something working on Mac OS X that I'm trying to get working on Windows. I would like access to the OpenGL context so I can see what I'm actually getting when I try to set the format.
I have a QWindow subclass and I'm doing this (same as the examples I think): setSurfaceType( QSurface::OpenGLSurface ); QSurfaceFormat format; if ( QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGL ) { format.setVersion( 4, 3 ); format.setProfile( QSurfaceFormat::CoreProfile ); } format.setDepthBufferSize( 24 ); format.setSamples( 4 ); format.setStencilBufferSize( 8 ); setFormat( format ); create(); The docs for QWindow::format() state explicitly that the OpenGL information may not be updated in create(), so use the QOpenGLContext's format() to get this information instead. How do I get access to my subclassed QWindow's QOpenGLContext using Qt3D? I see a QOpenGLInformationService class that I think provides the info I want, but it's private. Thanks! --- Andy Maloney // https://asmaloney.com twitter ~ @asmaloney <https://twitter.com/asmaloney>
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest