PDA

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



sukanyarn
10th October 2006, 07:50
Hi,

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:

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