[Interest] How to display HTML entities in QLineEdit?

程梁 chengliang.soft at gmail.com
Mon Jun 4 03:21:47 CEST 2012


Yeah, I found another way:

QTextDocument text;

text.setHtml(aString);

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


That's fine, too.


2012/6/3 Diego Iastrubni <diegoiast at gmail.com>

>
> On Sat, Jun 2, 2012 at 4:29 AM, 程梁 <chengliang.soft at gmail.com> wrote:
>
>> Hi, there! I wonder if I could display HTML entites such as &(&) 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: devbean at devbean.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120604/b31c6879/attachment.html>


More information about the Interest mailing list