Results 1 to 4 of 4

Thread: Can Qwebview load xml/xsl file?

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Default Can Qwebview load xml/xsl file?

    Hi,

    I am wondering if anyone ever load xml file ( not html ) in QWebview? Can the data in XML be shown correctly with teh style specified by xsl file?

    thank you!

  2. #2
    Join Date
    Nov 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Can Qwebview load xml/xsl file?

    I was able to do this with 4.6.2, but now with 4.7.1, I cannot. l When I set the QUrl to the xml/xslt file, nothing appears to happen. The signals are emitted for loadStarted(), loadProgress(), loadFinished(), urlChanged(), but nothing is displayed in the QWebView.

  3. #3
    Join Date
    May 2012
    Location
    London, England
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Can Qwebview load xml/xsl file?

    I've been trying to do pretty much the same, using the example from this stackoverflow question:

    http://stackoverflow.com/a/9530410

    This is an XML file with an embedded XSLT. I've tried all sorts from setting attributes for on the page that webview has, to using QXmlQuery and setting HTML and I can't get it to work with an embedded XSLT. I do have an example working with separate XML and XSLT files. However, I'd prefer to use the embedded version since I have third-party application that produces such XML + XSLT files.

    Is this confirmed as not working or not supported in Qt 4.8?

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Can Qwebview load xml/xsl file?

    QWebView is not a full-blown web browser like Firefox, IE, Chrome, or whatever - it doesn't support XML / XSLT, only HTML and some JavaScript. The stackoverflow example was based on a standalone browser, not QWebView.

Similar Threads

  1. How to load icons from resource file
    By joseph in forum Qt Programming
    Replies: 7
    Last Post: 25th June 2012, 08:00
  2. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 07:51
  3. Load ActiveX from file
    By Passer_dj in forum Qt Programming
    Replies: 1
    Last Post: 14th August 2007, 00:24
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  5. Replies: 2
    Last Post: 13th September 2006, 10:11

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.