PDA

View Full Version : QWebView -> load Default Splash Screen from .qrc File



RacePhase
26th June 2009, 15:14
Hi Community,

I`m looking for a way to display a standard splash screen on a client within a QWebView if there is no connection to a host. The splash screen is a simple .html file containing text and pics and is being referenced in the .qrc file of the application.

void QWebView::setHtml ( const QString & html, const QUrl & baseUrl = QUrl() ) seems to like a baseUrl, which ideally contains a relative path to the .html for successfully displaying the pictures. There is the problem: The screen gets loaded if i pass ":FOLDER/file.html" to baseUrl. However, the pictures contained in the .html file are not displayed. Does somebody know about a workaround for pictures from the .qrc?

Thanks for your attention!