想得到色块中心坐标和画面中心坐标的差值,但不知道怎么得到画面中心坐标,求赐教
img.width()/2
img.height()/2
好,我试试,多谢了
img.draw_cross(int(img.width()/2),int(img.height()/2))
转换为整型之后就可以了