Results 1 to 2 of 2

Thread: How can I display XML in Qt??

  1. #1
    Join Date
    Jul 2008
    Location
    Seoul, Korea
    Posts
    5
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Windows

    Post How can I display XML in Qt??

    I have to display XML in Qt.
    So, I tried to use QTextBrowser.
    But when I look around this site,
    some people said it is impossible(In aamer4yu's thread).

    What I REALLY know:
    1. Is it really impossble?
    2. if first question's answer is "Yes", instead of QTextBrowser, what can I use?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How can I display XML in Qt??

    1) Its not impossible... but very tedious.
    2) I havent tried QTextBrowser.

    What I did was, I modified the Simple DOM Model example. In the model part, I made it return data in one line as a tag instead of multiple columns. Second, I set a Tree view on this, and on the tree view set a delegate to do xml highlighting (xml highlighter).

    But this is not as efficient as IE displays it. I dont have the ending tags.</tagName>. And my spacing is not perfect.

  3. The following user says thank you to aamer4yu for this useful post:

    highlightsong (14th July 2008)

Similar Threads

  1. Replies: 8
    Last Post: 18th March 2011, 12:27
  2. OS/X how to get physical display handle
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 3rd January 2009, 20:51
  3. Display only PNG image on desktop
    By durbrak in forum Qt Programming
    Replies: 32
    Last Post: 15th March 2008, 22:55
  4. Qt on X11 with multiple display connections?
    By grenoble in forum Qt Programming
    Replies: 1
    Last Post: 25th February 2008, 13:44
  5. Graphics view display problem.
    By kiranraj in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2007, 08:08

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.