Check whether the mimetype of the downloaded file really matches the advertised mimetype
Sometimes, the mimetype provided by QWebEngineDownloadItem
is incorrect. When the requesting part downloads the URL itself, we can look at the mimetype of the downloaded file and, if needed, use the appropriate part or application to open it.