Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebEngineSettings missing attributes of QWebSettings?
Qt 6.11 is out! See what's new in the release blog

QWebEngineSettings missing attributes of QWebSettings?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.6k 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.
  • D Offline
    D Offline
    dcortesi
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dcortesi
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          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
          • Unsolved