For the first exercise, we will create a subclass of QOpenGLWindow that renders a triangle using simple OpenGL calls. Create a new project, starting with Empty qmake Project from the Other Project group as the template. In the project file, put the following content:
QT = core gui TARGET = triangle TEMPLATE = app
Note that Qt Core and Qt GUI modules are enabled by default, so you don't have to add them to the QT variable, but we prefer to explicitly show that we are using them in our project.
Having the ...