PDA

View Full Version : QSpinbox



sonuani
21st March 2008, 05:51
hi,
I have a spinbox in my dialog.When the cursor is placed on the spinbox ,the value on it should get selected.But when i scroll through the spinbox, the values should not be selected.
What am i suppose to do??Should i set anything??

mattia
21st March 2008, 07:58
Do you need to retrieve the current QSpinBox value?
If this's your problem you can use http://doc.trolltech.com/4.2/qspinbox.html#value-prop

sonuani
21st March 2008, 09:57
no thats not my problem.Only thing is that...my values in spinbox shouldnt be selected while i scroll the values in spinbox

wysota
21st March 2008, 11:36
Have you tried making the spinbox QAbstractSpinBox::readOnly?