Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt OpenGL dynamic vs. desktop

Tags:

qt

opengl

What is the difference between Qt versions with dynamic and desktop OpenGL? http://tver-soft.org/qt64

like image 423
user2449761 Avatar asked Jun 08 '15 09:06

user2449761


People also ask

What version of OpenGL does Qt use?

For Qt Quick 2 to work, a graphics driver that provides OpenGL 2.1 or higher is required. The default driver from Windows is OpenGL 1.1.

Does Qt support OpenGL?

The Qt OpenGL module makes it easy to use OpenGL in Qt applications. It provides an OpenGL widget class that can be used just like any other Qt widget, except that it opens an OpenGL display buffer where you can use the OpenGL API to render the contents.


1 Answers

It is likley that this refers to the configure option that was set when they compiled Qt. This option is explained in detail here: https://blog.qt.io/blog/2014/11/27/qt-weekly-21-dynamic-opengl-implementation-loading-in-qt-5-4/

To summarise, Qt can be compiled to use ether the desktop OpenGL (a direct interface to the graphics driver provided OpenGL version) or to use Angle (a version of OpenGL that uses directX to provide hardware GL support).

Using 'desktop' gives you the latest (and deprecated) OpenGL features where available, but some drivers do not work properly.

Qt now relies on OpenGL to do important 2D rendering and can be badly affected by faulty drivers. For this reason you have the safer option of Angle, safer but limited to OpenGL ES 2.0 functionality.

Dinamic is a new option that will select between them automatically at runtime on the user's machine. It does however mean that you will need to use the Qt OpenGL API (rather than e.g. GLEW) to access OpenGL.

If you are not going to use OpenGL directly in your code then you should chose dynamic.

You should also consider compiling the code for yourself, as you are trusting your and your user's security to tver-soft.org. Even without malicious intent these files may be a security risk.

like image 161
OFE Avatar answered Sep 22 '22 03:09

OFE