Results 1 to 8 of 8

Thread: XML display in Qt

  1. #1
    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 XML display in Qt

    Is there a way to display XML in Qt ?
    Searched QTextBrowser, but not able to find anything related.
    Need to display XML as it appears in Internet explorer. Simple tree structure can be created.

    Nebody know a way how to do it ??

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: XML display in Qt

    If you mean:
    Qt provides means to parse xml files. You can use these facilities to create an own tree from that using QTreeView.

    read this: http://doc.trolltech.com/4.3/qtxml.html#details

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: XML display in Qt

    Take a look at Simple DOM Model Example.
    J-P Nurmi

  4. #4
    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: XML display in Qt

    Ya had seen it.
    But what i wanted actually is a display like the XML in IE . with colored attributes etc.
    Is there any compoonent or class in Qt ??

  5. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: XML display in Qt

    I'm afraid there's nothing readily available in Qt for that. Take a look at http://wiki.qtcentre.org/index.php?title=XmlHighlighter (just be aware that it's buggy).
    J-P Nurmi

  6. #6
    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: XML display in Qt

    thanx for the same...
    i used a work around... used a IE component in QAxWidget

  7. #7
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: XML display in Qt

    Quote Originally Posted by aamer4yu View Post
    thanx for the same...
    i used a work around... used a IE component in QAxWidget
    But then it's two to three times as big as it should be, and you lose all cross platform.

  8. #8
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: XML display in Qt

    Surely this standard Trolltech example that ships with Qt is what you want.
    http://doc.trolltech.com/4.3/xml-saxbookmarks.html

    It's not identical to the IE styling but it would get you 90% of the way there.

Similar Threads

  1. Replies: 8
    Last Post: 18th March 2011, 11:27
  2. OS/X how to get physical display handle
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 3rd January 2009, 19:51
  3. Display only PNG image on desktop
    By durbrak in forum Qt Programming
    Replies: 32
    Last Post: 15th March 2008, 21:55
  4. Graphics view display problem.
    By kiranraj in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2007, 07:08
  5. Graph display in QT/Embedded
    By hvreddy1110 in forum Newbie
    Replies: 1
    Last Post: 22nd September 2006, 19:02

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.