use qreal (usually double) for zoom instead of float.