[Qt-interest] Hiding the cursor in a QTextEdit

KC Jones kc at asperasoft.com
Wed Apr 7 20:27:31 CEST 2010


I have a dialog with multiple input widgets.
One of them is a QTextEdit widget.
When the dialog is raised, focus is in another widget, and no cursor
is displayed in the QTextEdit widget.
When the QTextEdit widget gains focus, the cursor appears as expected.

So far so good.

When the QTextEdit widget loses focus, the cursor continues to be displayed.
When focus is in another text input widget, the user sees multiple
edit cursors.
Not good.

How can I suppress the cursor display in my QTextEdit when that widget
loses focus?

[Using QT 4.5.3 on Mac 10.5.8]



More information about the Qt-interest-old mailing list