You have several different options for using OpenGL in Qt. In recent years, he has changed a lot. For an introduction that should cover all the basic information, you need to start looking at this post . The old Qt OpenGL classes and its functions were called QGLxx, but now they are called QOpenGLxx and have been transferred to the QtGUI module for starters.
Many of the simple OpenGL examples with Qt (including the QOpenGLWindow example that ships with Qt) use the old OpenGL style, which should no longer be used. Here is a tutorial that updated the QOpenGLWindow example for modern OpenGL (3+). This is the simplest, most modern example that I came across.
I am the second Qt Creator, especially for training. It has much better integration with Qt help files than Visual Studio. If you plan on switching between IDEs, I would also recommend building with CMake. CMake is very similar to the built-in qmake Qt Creator, but it can work just as well with Visual Studio or other IDEs. I used some examples for training in Visual Studio and Qt Creator using CMake. Here is a simple CMake example with Qt. For my purposes, I still use the Visual Studio compiler when working in Qt Creator.
source share