Draw a circle with solid line

How can I draw a circle or an arc with solid line between two points in pyqt6.

I reviewed the section plotting in the book but did not find any issues.