Fix qt 5.15 webengine not displaying doc type icons by setting the base URL to file:/// (an empty one used to work)

This commit is contained in:
Jean-Francois Dockes 2020-07-16 19:59:14 +02:00
parent 9a241f92a1
commit a3d014bd8d

View File

@ -811,7 +811,10 @@ void ResList::displayPage()
m_pager->displayPage(theconfig);
#if defined(USING_WEBENGINE) || defined(USING_WEBKIT)
setHtml(m_text);
// webengine from qt 5.15 on won't load local images if the base URL is
// not set (previous versions worked with an empty one). Can't hurt anyway.
const static QUrl baseUrl("file:///");
setHtml(m_text, baseUrl);
#endif
LOGDEB0("ResList::displayPg: hasNext " << m_pager->hasNext() <<