Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

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

    Qt WebKit
    2
    3
    1203
    Loading More Posts
    • 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
      Allstar12345 last edited by

      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 Reply Quote 0
      • K
        Konstantin Tokarev last edited by Konstantin Tokarev

        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 Reply Quote 2
        • A
          Allstar12345 @Konstantin Tokarev last edited by

          @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 Reply Quote 0
          • First post
            Last post