[SOLVED]QPoint for double type
General and Desktop
4
Posts
3
Posters
3.9k
Views
1
Watching
-
It uses floating point variables. It doesn't say it uses
floatspecifically.doubleis also a floating point type.QPointFuses aqrealtypedef. As the doc statesqrealis a typedef fordoubleunless you compiled Qt yourself with-qreal floatconfigure 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.