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

Atlant Schmidt aschmidt at dekaresearch.com
Thu Mar 31 21:53:35 CEST 2011


Sean:

  First thing I tried! ;-)

  Unfortunately, that also makes the entire spin-box
  read-only; not only can't you edit the text of the
  value, you can't change it's value by pressing
  the buttons either.

                        Atlant

-----Original Message-----
From: qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com [mailto:qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com] On Behalf Of Sean Harmer
Sent: Thursday, March 31, 2011 15:32
To: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] How do I turn-off/hide the text cursor in QSpinBox?

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
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest

This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.



More information about the Qt-interest-old mailing list