Have you tried making the spinbox QAbstractSpinBox::readOnly?