Thanks for the reply.
I forgot to say that my main html-document is loaded from qrc which seems to be what is blocking the access to the local filesystem.
I guess I'm forced to load my html from the filesystem then, or what?
Cheers
Thanks for the reply.
I forgot to say that my main html-document is loaded from qrc which seems to be what is blocking the access to the local filesystem.
I guess I'm forced to load my html from the filesystem then, or what?
Cheers
ok, well then using the QWebEngineSettings::LocalContentCanAccessFileUrls attribute was not enough. Actually it seems be enough to extract the main html file to a local tempdir. I can still load other resources via qrc afterwards.
I think it would be nice if it was possible to extend and reduce the resource dictionary runtime so you could access bytearrays using :/ and qrc:/.
Ie:
* QResource::addData(const QString &path, const QByteArray &data);
* QResource::removeData(const QString &path);
Cheers Jakob
Bookmarks