It draws a shape from buffer so different shape is created
It draws a shape from buffer so different shape is created
But your "grafik" class is not even a QGLWidget...
I can not understand can you explain it.
The widget has to be a subclass of QGLWidget to be able to use OpenGL. Your class is derived from QMainWindow and not QGLWidget so the methods related to painting using OpenGL are never called.
Bookmarks