Solved QWindow or QWidget
-
I am writing a class that will handle the events found in QWindow, should my class inherit QWindow or QWidget?
I ask because when I added the class using Qt Creator there was no option to base the class on QWindow.
-
Then subclass QWidget or if you need OpenGL features QOpenGLWidget.
-
Hi,
It depends on what you want to do with it.
Can your explain ?
-
I want to add handlers for resizeEvent so when the window is resized I can manage the controls inside it.
-
I meant what will be the purpose of that thing ? Do you need the widgets features ?
-
Yes, most definitely.
-
Then subclass QWidget or if you need OpenGL features QOpenGLWidget.
-
Thank you