[Qt-interest] How do I turn-off/hide the text cursor in QSpinBox?
J-P Nurmi
jpnurmi at gmail.com
Fri Apr 1 05:57:01 CEST 2011
On Thu, Mar 31, 2011 at 9:48 PM, Atlant Schmidt
<aschmidt at dekaresearch.com> wrote:
> Folks:
>
> How do I turn off the cursor in the text area of a QSpinBox?
>
> A purely touch-screen implementation with no keyboard has no
> need for the text cursor.
>
Hi,
You could do: spinBox->setFocusPolicy(Qt::NoFocus);
--
J-P Nurmi
More information about the Qt-interest-old
mailing list