Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 2.3.1
-
None
-
f34e0bbfdf550d3bcbf797180559e9c25e6ce549
Description
void Html5ApplicationViewer::loadFile(const QString &fileName)
{
m_d->m_webView->setUrl(QUrl(Html5ApplicationViewerPrivate::adjustPath(fileName)));
}
Should be using QUrl::fromLocalFile, as toLocalFile does not work for urls without a file: scheme.
Currently the generated code does not work on Qt 4.8.0 (we are discussing reverting to the old behaviour in 4.8.1 on qt-development mailing list)
And it won't work on Qt5
Attachments
Issue Links
- relates to
-
QTBUG-22382 QUrl.toLocalFile returns nothing if given non-canonical path
- Closed
- replaces
-
QTCREATORBUG-7052 Hello World - HTML5 app does not work
- Closed