Use QDoubleSpinBox instead of QSpinBox for the long variables