Use qreal instead of float