Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
catalin1122 last edited by
I am developing an OpenGL application using Qt. Until yesterday I was subclassing
QOpenGLWidgetto create my custom widget but after adding It to the main application which is a
QMainWindowwith a few buttons and three
QGraphicsViewit runs really slow. I have tried using
QGLWidgetand the application runs the same as without the OpenGL widget.
The problem I have is that the widget that I've made subclassing
QGLWidgetdoes not resize properly (or at least the OpenGL rendering area doesn't).
I will give you an example using hellogl2 example from Qt 5.5.
I just changed the parent class from
QGLWidgetthe rest of the code is the same. The same thing happens in my aplication.
I have tried to find a solution but I could not. May someone tell me why is this happening and how to solve it?