Il 19/09/2018 14:32, Andy ha scritto:

That was my initial thought too, but in order to create the context to check the results, I need an application. But if I set the default after I create the application I get a warning:

Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. (qsurfaceformat.cpp:836, static void QSurfaceFormat::setDefaultFormat(const QSurfaceFormat &))


(Which is what it says in the docs for QSurfaceFormat::setDefaultFormat())

Hence the catch-22.

Are you destroying the QGuiApplication object after an unsuccessful test, and recreating it after changing the default format?

Cheers,

--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to