You can do that with a QSpinBox and QSpinBox::setSuffix()