I have an application, that is written with help of Qt+QML v5.8. It uses QtWebEngineView to display html content. The problem is, that since two weeks twitch badges are not loading anymore.
I have created empty project, just for testing purposes. It has same issue.
Here is screenshot
index.html:
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta charset="UTF-8">
</head>
<body>
<h1>Test</h1>
<img src='https://static-cdn.jtvnw.net/chat-badges/broadcaster.png'>
<img src='https://cdn.betterttv.net/emote/54fa925e01e468494b85b54d/1x'>
<img src='https://static-cdn.jtvnw.net/badges/v1/9ef7e029-4cdf-4d4d-a0d5-e2b3fb2583fe/1'>
<img src='https://static-cdn.jtvnw.net/emoticons/v1/25/1.0'>
</body>
</html>
main.qml:
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0
import QtWebEngine 1.4
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
color: "black"
WebEngineView{
id: webView
profile.httpCacheType: WebEngineProfile.NoCache
anchors.fill: parent
url: "qrc:/index.html"
}
}
main.cpp:
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QtWebEngine>
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QtWebEngine::initialize();
QQmlApplicationEngine engine;
engine.load(QUrl(QLatin1String("qrc:/main.qml")));
return app.exec();
}