qreal is typedef for float in arm architectures and double for others, this way we ensure that all of them have the same type.