PDA

View Full Version : QTextEdit problem



vijay anandh
14th July 2006, 10:57
Hi All


I have placed one QTextEdit Control in my Form. In that Control i want to display one link , for example "www.example.html".

So I gave the statement

txtEditObj->setHtml("www.example.html");

It works fine. but after that i want to edit the text. if i give any inputs it also looks like "LINK". QTextEdit control becomes entirley to HTML format.

What can i do

Looking forward your reply
Thanks and regards
vijay

munna
14th July 2006, 11:56
QTextEdit control becomes entirley to HTML format.

That is becuase you are using setHtml().

Try:

setHtml("<a href = \"#\">www.example.com</a>");