Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 7

Qt-interest Archive, May 2007
where comes the dumb child “#text”?

Pages: Prev | 1 | 2 | Next

Message 16 in thread

Bernd Brandstetter wrote:

>On Wednesday 30 May 2007, Lingfa Yang wrote:
>  
>
>>I think your are right.
>>I am changing
>> http://doc.trolltech.com/4.2/itemviews-simpledommodel.html
>>to rander my xml.
>>
>>I saw this Qt example snapshot does show "#text" in display.
>>I just do not know how to get ride of it.
>>Can you speak in detail how to "change the model".
>>Thanks,
>>Lingfa
>>    
>>
>
>I've modified the simpledommodel example to only show the XML elements.
>Please find attached the modified files. Not exactly elegant but it seems 
>to work.
>
>Bernd
>  
>
Bernd,

I just recompiled with your attached files, and made a run.
Wonderful! It works very well, and the code looks elegant. I recommend 
it to everyone.

Thank you so much!
Lingfa


--
 [ signature omitted ]