QWebEngineSettings missing attributes of QWebSettings?



  • I am converting a program from QWebView to QWebEngineView. In the original code I set a couple of attributes of the QWebSettings that I cannot find in the QWebEngineSettings doc (http://doc.qt.io/qt-5/qwebenginesettings.html).

    Specifically: in QWebSettings there is a setting JavaEnabled, which I would like to set False, but I do not find this documented for QWebEngineSettings.

    Also, QWebSettings has a PluginsEnabled attribute which is not documented for QWebEngineSettings, even though the QWebEngineSettings doc says, "QWebEngineSettings allows configuration of browser properties, such as ... JavaScript and plugins." I would like to specifically disable Flash for this app.

    Also, QWebSettings offers PrivateBrowsingEnabled which prevents caching, this also is not documented for QWebEngineSettings. Is this feature not supported with QWebEngine?

    Thanks,
    Dave Cortesi


  • Moderators

    Looking at the source code and the "browser application example":http://doc.qt.io/qt-5/qtwebenginewidgets-browser-browserapplication-cpp.html I believe these are not implemented yet (or maybe not stable enough yet?).
    The example contains a lot of #ifdefed out code e.g.
    @
    #if defined(QWEBENGINESETTINGS_PATHS)
    #if defined(QTWEBENGINE_PLUGINS)
    #if defined(QTWEBENGINE_USERSTYLESHEET)
    #if defined(QTWEBENGINE_PRIVATEBROWSING)
    @
    so my guess would be that these features are coming back in some future releases.



  • Hmmm. Thanks for the pointer to the browser example. Two of those ifdefs respond directly to my questions above,
    @#if defined(QTWEBENGINE_PLUGINS)
    defaultSettings->setAttribute(QWebEngineSettings::PluginsEnabled,...);
    #endif@
    and
    @#if defined(QTWEBENGINE_PRIVATEBROWSING)
    ...if (globalSettings->testAttribute( QWebEngineSettings::PrivateBrowsingEnabled))...
    #endif@

    How or where could I find out what Web Engine features are missing and planned? Is there a WebEngine timeline of some kind?


  • Moderators

    Good question. I suppose the easiest would be to ask the devs themselves on the "mailing list":http://lists.qt-project.org/mailman/listinfo.


Log in to reply
 

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