Yeah, I found another way:

QTextDocument text;

text.setHtml(aString);

textEdit->setText(text.toPlainText());


That's fine, too.


2012/6/3 Diego Iastrubni <[email protected]>

>
> On Sat, Jun 2, 2012 at 4:29 AM, 程梁 <[email protected]> wrote:
>
>> Hi, there! I wonder if I could display HTML entites such as &#38;(&) in
>> QLineEdit?
>> I mean not the code but the characters. Is there any functions or libs I
>> could do this?
>>
>>
> Fake it using a single line QTextEdit :)
>



-- 
Cheng Liang <http://about.me/devbean>
Nanjing, China
http://www.devbean.info
from: [email protected]
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to