[SOLVED]QPoint for double type
General and Desktop
4
Posts
3
Posters
3.8k
Views
1
Watching
-
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.
-
Note that qreal will be float by default on certain CPU architectures without floating point unit.