PDA

View Full Version : setting cursor problem in QTextEdit



jyoti kumar
19th May 2006, 05:44
How to set cursor on QTextEdit?
Actually, I need to highlight the Found text on this, but i am not getting the cursor on text edit widget.
pls help.

munna
19th May 2006, 05:48
bool QTextEdit::find ( const QString & exp, QTextDocument::FindFlags options = 0 )

Finds the next occurrence of the string, exp, using the given options. Returns true if exp was found and changes the cursor to select the match; otherwise returns false.

jyoti kumar
19th May 2006, 08:14
Hi,
I used the same code, but my cursor is not visible on the QTextEdit window.

Thanks & Regards

zlatko
19th May 2006, 08:17
Show how you use it ;)