Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.12.0
-
None
Description
hello,
I debug some code like:
QRect(QPoint(0,0),QPoint(2,2)).center() => QPoint(1,1)
QRect(QPoint(0,0),QSize(2,2)).center() => QPoint(0,0)
In my submission the two lines may get same result, and I check the QRectF class is right behavior I expect.
and I lookup the implement code.
return QPoint(int((qint64(x1)+x2)/2), int((qint64(y1)+y2)/2));
why the 'x2' not add 1 like width function do it.
maybe I misunderstood it,
please check in your side.
thanks!