Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. PluginsEnabled exist for QWebEngineSettings ?
Forum Updated to NodeBB v4.3 + New Features

PluginsEnabled exist for QWebEngineSettings ?

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BestShuffle
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved