PDA

View Full Version : QSpinBox question...



nikita
19th November 2006, 15:06
can this be subclassed to display text (ie QStringList)? the reason i ask is that it i would rather use this for an app than something like QComboBox or QInputDialog for special reasons. thanx.

jacek
19th November 2006, 15:40
All you have to do is to reimplement QSpinBox::valueFromText() and QSpinBox::textFromValue().

nikita
19th November 2006, 15:57
thanx, that will save some time... i'm trying to finish a painting so i can't play around today.