PDA

View Full Version : Issue with supportive files loading for xhtml in QML in qt



ejoshva
24th February 2015, 06:43
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

wysota
24th February 2015, 08:18
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.

Josh Sk'hozana
13th March 2015, 08:59
I was having a problem the router, now's fine