forked from black-sheep-dev/harbour-webview-example
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Use Sailfish WebView to render page
- Loading branch information
Showing
2 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,22 @@ | ||
| import QtQuick 2.0 | ||
| import Sailfish.Silica 1.0 | ||
| import QtWebKit 3.0 | ||
| import QtWebKit.experimental 1.0 | ||
| import Sailfish.WebView 1.0 | ||
| import Sailfish.WebEngine 1.0 | ||
| import Sailfish.WebView.Popups 1.0 | ||
|
|
||
| Page { | ||
| id: page | ||
| allowedOrientations: Orientation.All | ||
|
|
||
| SilicaWebView { | ||
| WebView { | ||
| anchors.fill: parent | ||
| url: "http://www.sailfishos.org" | ||
| privateMode: true | ||
| httpUserAgent: "Mozilla/5.0 (Mobile; rv:78.0) Gecko/78.0 Firefox/78.0" | ||
|
|
||
| experimental.temporaryCookies: true | ||
| experimental.userAgent: "Mozilla/5.0 (Mobile Linux; U; like Android 4.4.3;" | ||
| + " Sailfish OS/2.0) AppleWebkit/535.19 (KHTML, like Gecko)" | ||
| + " Version/4.0 Mobile Safari/535.19" | ||
| experimental.autoCorrect: false | ||
| experimental.deviceWidth: parent.width | ||
| experimental.deviceHeight: parent.height | ||
| popupProvider: PopupProvider { | ||
| // Disable the Save Password dialog | ||
| passwordManagerPopup: null | ||
| } | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters