To begin with, there are lines in the * .pro file:

QT += core gui opengl LIBS += -lglut -lglut32 -lopengl32 -lglu32 

When you call the opengl window, everything works fine. But I want to place the opengl widget in Qt form. The widget itself is not displayed, but when you move the window you can see that it is loaded with something, respectively, the widget itself works.

  • And if so, add QT + = widgets - maint
  • There is a greaterThan (QT_MAJOR_VERSION, 4): QT + = widgets - Alexey

0