[SOLVED]QPoint for double type
-
hi.
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 aqreal
typedef. As the doc statesqreal
is a typedef fordouble
unless you compiled Qt yourself with-qreal float
configure switch.So by default QPointF is using doubles already.
-
Thanks Chris.
-
Note that qreal will be float by default on certain CPU architectures without floating point unit.