[Interest] Qt WebEngine, MHTML and custom schemes

Benjamin TERRIER b.terrier at gmail.com
Mon Nov 30 15:00:10 CET 2020


Hi,

When accessing an MHTML file using a custom local scheme (either using
'qrc:/' or using 'QWebEngineUrlSchemeHandler') it triggers a download.

However, when using 'file:/' the MHTML file is displayed as a web page.

I am trying to have the MHTML displayed also when using a custom scheme.
I have tried to play with
https://doc.qt.io/qt-5/qwebengineurlscheme.html#Flag-enum but it did not
work.

Does someone have an idea to make it work?

Regards,

Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20201130/344c16ca/attachment.html>


More information about the Interest mailing list