PluginsEnabled exist for QWebEngineSettings ?

  • Hi all, i'm actually doing an app, i've QT 5.4.0 and i need to use flash in a Chromium browser.

    My main.cpp :
    @#include <QApplication>
    #include <QQmlApplicationEngine>
    #include <QtWebEngine/QtWebEngine>
    #include <QtWebEngineDepends>
    #include <QtWebEngineWidgets/QtWebEngineWidgets>
    #include <QtWebEngineWidgets/QWebEngineSettings>
    #include <QtWebEngineDepends>

    int main(int argc, char *argv[])
    QApplication app(argc, argv);
    return app.exec();

    I tried to add :
    @QWebEngineSettings *defaultSettings = QWebEngineSettings::globalSettings();
    defaultSettings->setAttribute(QWebEngineSettings::JavascriptEnabled, true);
    defaultSettings->setAttribute(QWebEngineSettings::PluginsEnabled, true);@
    @QWebEngineSettings::globalSettings()->setAttribute(QWebEngineSettings::PluginsEnabled, true);@

    But i've the error :
    "no member named 'PluginsEnabled' in 'QWebEngineSettings'"

    I try since 5 days ago and i didn't found how to enable flash in QtWebEngine.

    Can u help me please ?

    PS : I'm french sorry for my bas english

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.