Important: Please read the Qt Code of Conduct -

WebEngine memory leak while in youtube?

  • Hi all,

    I'm trying to add Youtube view in my softaware and i started noticing lagging, so i checked the taskmanager and saw that something was eating all my ram.

    I made conclusion it had something to do with WebEngine cause the ram started to get eaten when i started a video. I also made another test to make just a simple QtQuick app with only WebEngine in it with youtube as url and after clicking a video something started eating my ram again step by step until there was no ram left.

    #include <QGuiApplication>
    #include <QQmlApplicationEngine>
    #include <QtWebEngine>
    int main(int argc, char *argv[])
        QGuiApplication app(argc, argv);
        QQmlApplicationEngine engine;
        if (engine.rootObjects().isEmpty())
            return -1;
        return app.exec();
    import QtQuick 2.9
    import QtQuick.Window 2.2
    import QtWebEngine 1.5
    Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
            anchors.fill: parent;
            url: "";

    Should i file a bug report or am i just doing something wrong here? I'm building this as Qt_5_10_1_MSVC2015_32bit.

    Thanks in advance,

Log in to reply