[SOLVED]QPoint for double type
in Qt we have QpointF that gets and sets floating points.
but how can I have double points?
Is there any data type to support pionts as double?
It uses floating point variables. It doesn't say it uses float specifically. double is also a floating point type.
QPointF uses a qreal typedef. As the "doc":http://doc.qt.io/qt-5/qtglobal.html#qreal-typedef states qreal is a typedef for double unless you compiled Qt yourself with -qreal float configure switch.
So by default QPointF is using doubles already.
Note that qreal will be float by default on certain CPU architectures without floating point unit.