Results 1 to 3 of 3

Thread: Issue with supportive files loading for xhtml in QML in qt

  1. #1
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Issue with supportive files loading for xhtml in QML in qt

    I am loading a xhtml file having some properties like table,images and others as supportive files.
    The page is getting loaded as plain text page and not as what I require with table format.
    When I open the page normally in firefox, I am able to view the tableformat. But after setting on the webview. Unable to find the table format.
    Though I am setting the baseUrl in the setHtml(), still it's not loading.

    Kindly let me know how to approach this issue.

    Thanks


    Added after 1 18 minutes:


    Got the issue resolved, once I gave the whole url along with the file name in baseUrl parameter.
    Kindly let me know why I am supposed to give the filename as well in the baseurl to make the supportive files work.

    Thanks
    Last edited by ejoshva; 24th February 2015 at 06:43.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Issue with supportive files loading for xhtml in QML in qt

    No idea how your page is constructed. Typically the browser resolves urls relative to the url of the document. If your files path are not relative to the url you gave to the browser then it will not be able to resolve them.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Feb 2015
    Posts
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Issue with supportive files loading for xhtml in QML in qt

    I was having a problem the router, now's fine

Similar Threads

  1. QML files loading
    By parfait in forum Newbie
    Replies: 6
    Last Post: 25th June 2013, 07:14
  2. Loading 3DS files??
    By xleniz in forum Newbie
    Replies: 1
    Last Post: 24th February 2012, 02:26
  3. QT Jpeg, Gif, Bmp loading issue
    By meraj ansari in forum Qt Programming
    Replies: 7
    Last Post: 21st May 2010, 08:33
  4. stylesheet loading issue - thread
    By talk2amulya in forum Qt Programming
    Replies: 8
    Last Post: 26th February 2009, 12:53
  5. Loading TGA files
    By ChMaster in forum Qt Programming
    Replies: 2
    Last Post: 28th June 2007, 09:55

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.