How to draw the graph in the center of the window and scale it reasonably by Qt5

I now have some coordinate pairs of broken lines, which need to be drawn with Qt, that is, to connect these coordinate points with line segments. Now that I can draw the broken line correctly, I try to move the graph to the center of the window with the following code:

</span><br>:

 1.15109497070313E+02 2.73440704345703E+01
 1.15115196228027E+02 2.73563938140869E+01
 1.15112876892090E+02 2.73697128295898E+01
 1.15108222961426E+02 2.73687496185303E+01
 1.15081001281738E+02 2.73908023834229E+01
 1.15078292846680E+02 2.73949108123779E+01
 1.15073806762695E+02 2.74090080261230E+01
 1.15063293457031E+02 2.74221019744873E+01
 1.15059646606445E+02 2.74324569702148E+01

so I think my problem now is how to move the graphics to the center of the window and zoom in properly to make the graphics show more clearly? I used to use MFC, in MFC through the coordinate transformation of windows and viewports, but I don"t know much about the principle, so coordinate transformation is real to me. How to solve this problem reasonably in Qt?

Aug.12,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45f59-590fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45f59-590fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?