I decided to run some OpenGL example, and compiler gave me error:
:-1: error: This example requires Qt to be configured with -opengl desktop
Then from here http://doc.qt.io/qt-5/configure-options.html I see that by default when you install QtCreator on Windows it is configured to use some ANGLE which runs OpenGL using the DirectX.
So I'll have to build Qt from sources myself with -opengl and ANGLE disabled correct?
If yes, then another page confuses me: http://doc.qt.io/qt-5/qtopengl-index.html why they writeSo to use a native OpenGL I need to build its desktop to utilize OpenGL, but then to build OpenGL stuff...its not recommended? or am I missing something?Warning: This module should not be used anymore for new code. Please use the corresponding OpenGL classes in Qt GUI.
Added after 8 minutes:
And as an additional question, since I have installed binary Qt 5.7, for example, if I build now any OpenGL application, does it mean that the application use DirectX9 then instead of using native OpenGL?
If yes...then how can I using my currently installed Qt 5.7 on Windows build the application which uses native OpenGL?
Bookmarks