Zahlenwert in QSpinbox ?

Post Reply
Message
Author
matabu

Zahlenwert in QSpinbox ?

#1 Post by matabu »

Hallo

Ich möchte in diesem QSpinbox sb1 mehr als 10 Zahlenwerte ausfühlen
Wie kann ich das machen. Mit "LONG_MAX" scheint nicht zufunktionieren

QLabel *label1 = new QLabel( QString( "Enter a value :" ), cell2 );
label1->setMaximumHeight( label1->sizeHint().height() );
QSpinBox *sb1 = new QSpinBox( 0, LONG_MAX, 1, cell2 );
sb1->setRange(0,LONG_MAX);
sb1->setValue( 0 );

Danke

Post Reply