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. How do I use QWebSettings from QML (qt 5.6) ?

How do I use QWebSettings from QML (qt 5.6) ?

Scheduled Pinned Locked Moved Solved Qt WebKit
3 Posts 2 Posters 1.5k Views
  • 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.
  • A Offline
    A Offline
    Allstar12345
    wrote on last edited by
    #1

    Hi,

    I'm a little stuck, first time I've used Webkit since Symbian and Qt 4.8 and it's a little different from them days, back in the day you could call settings.whatever from QML but it seems that's been removed in newer versions.

    Using 5.6 (Sailfish OS, they didn't remove Webkit and include WebEngine yet), importing WebKit 3.0

    Can't seem to see how I can use WebView in QML and still apply the web settings, does the class need exposing to QML or something?

    Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Konstantin Tokarev
      wrote on last edited by Konstantin Tokarev
      #2

      You are looking for WebView.experimental.preferences

      See also https://rschroll.github.io/beru/2013/08/21/qtwebview.experimental.html

      A 1 Reply Last reply
      2
      • K Konstantin Tokarev

        You are looking for WebView.experimental.preferences

        See also https://rschroll.github.io/beru/2013/08/21/qtwebview.experimental.html

        A Offline
        A Offline
        Allstar12345
        wrote on last edited by
        #3

        @Konstantin-Tokarev said in How do I use QWebSettings from QML (qt 5.6) ?:

        You are looking for WebView.experimental.preferences

        See also https://rschroll.github.io/beru/2013/08/21/qtwebview.experimental.html

        How did I miss that, thank you very much :)

        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