[Qt-interest] How do I turn-off/hide the text cursor in QSpinBox?

Sean Harmer sean.harmer at maps-technology.com
Thu Mar 31 21:32:07 CEST 2011


On 31/03/2011 19:48, Atlant Schmidt wrote:
> (OK, maybe my last question had too much info; let’s try again...)
>
> How do I turn off the cursor in the text area of a QSpinBox?

mySpinBox->setReadOnly( true );

http://doc.qt.nokia.com/latest/qabstractspinbox.html#readOnly-prop

Cheers,

Sean



More information about the Qt-interest-old mailing list