Update QMetric.py

After consultation. Final version.