Open GL - Drawing A square by clicking a button
-
Hi and welcome to the forums.
You can start by getting to know
https://doc.qt.io/qt-5/qtgui-openglwindow-example.html
as that is the minimum setup you need with shaders etc to show something/anything.Then step 2 would to modify code to draw recatangle and then step 3
is trying to do it with the mouse if that what you mean by "like in Ms Paint"You will need some understanding of openGL and basic elements like vertices etc