What is the difference between QRect and QRectF ?
The
QRectF class defines a rectangle in the plane
using floating point precision...
...
The QRect class defines a rectangle in the plane
using integer precision...
The QRectF class defines a rectangle in the plane using floating point precision...
...
The QRect class defines a rectangle in the plane using integer precision...
To copy to clipboard, switch view to plain text mode
QRect rect
(100.5,
100.5,
200.2,
200.3);
QRect rect(100.5,100.5,200.2,200.3);
To copy to clipboard, switch view to plain text mode
Double values are implicitly converted to integers. You can find detailed info here: Type Conversions
Bookmarks