Function QVariant.get

Implicitly convert a dimensionless value to the value type.

N get () const;

Calling get will throw DimensionException if the quantity is not dimensionless.