Unsolved How can i draw multiple rectangle in c++ qtcreator?
-
How can i attain something like this in qtcreator?
-
@ioanna Do you want to draw charts or simply rectangles?
Painting is done using https://doc.qt.io/qt-5/qpainter.html -
@jsulm how sir how can i paint inside pushbutton slot? I am just drawing rectangle i'm not going with graph.
-
@ioanna You don't draw in the button slot, you draw in paintEvent of the widget where you want to draw. In button slot you call update() on the widget where you want to draw.