View Full Version : QTextEdit: I can not see the cursor by deafult

10th October 2006, 08:50

I am implementing plain text Editor using QTextEdit class.
Editor has QMainWindow which in turn has QTextEdit.

When i create new Editor window, I can not see the cursor by default.
I need to click inside in the edtor to see the cursor.

How can i see the cursor by deafult when i create new editor?

I also want to know if it is possible to paint background of a line in QTextEdit to show that there exists a bookmark?

Some light please ..... :crying:

10th October 2006, 08:55
Try setting the focus on the text edit (QWidget::setFocus()). You might also consider using focus proxies.