I have started learning Qt recently.
I did not get quite clear how can I paint using QPainter class. Let`s say I want just to place a few points in the win
You need to initialize the painter with the widget you want to paint on.
Usually this is done using the constructor which takes a QPaintDevice but you can also do it by calling begin().