Quantcast
Channel: Qt DevNet forums: Qt WebKit
Viewing all articles
Browse latest Browse all 542

PluginsEnabled exist for QWebEngineSettings ?

$
0
0
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);     QtWebEngine::initialize();     engine.load(QUrl(QStringLiteral("qrc:/main.qml")));     return app.exec(); } I tried to add : QWebEngineSettings *defaultSettings = QWebEngineSettings::globalSettings(); defaultSettings->setAttribute(QWebEngineSettings::JavascriptEnabled, true); defaultSettings->setAttribute(QWebEngineSettings::PluginsEnabled, true); and 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

Viewing all articles
Browse latest Browse all 542

Trending Articles