Hello)
There are two buttons on the form, QPushButton1 and QPushButton2. I need to draw a line between the buttons. Those. pressed the QPushButton1 button and pushed the QPushButton2 button and pressed there. And then a line should be drawn on the form. How to implement it? It is advisable that after drawing the QPushButton1 and QPushButton2 lines are reset.
When QPushButton2 is released, for some reason it reacts only in its own area of ββthe button. Those. They pressed the QPushBUtton2 button and pressed it there, only this way it works.
1) Do I correctly update () every time?
2) Why does pressing the button work only in its area?