#include int main(int argc, char *argv[]) { QApplication app(argc, argv); QWidget window; QSpinBox * spinBox = new QSpinBox(); spinBox->setSpecialValueText("Special Value Text"); QSpinBox * spinBox2 = new QSpinBox(); spinBox2->setSpecialValueText("Special Value Text 2"); QVBoxLayout * layout = new QVBoxLayout(); layout->addWidget(spinBox); layout->addWidget(spinBox2); window.setLayout(layout); window.show(); spinBox->show(); return app.exec(); }