Skip to content
No description, website, or topics provided.
QML C++ QMake JavaScript
Branch: master
Clone or download
chriadam Merge pull request #45 from sailfishos/jb44296
[sailfish-components-webview] Use Theme opacity constants. Contributes to JB#44296
Latest commit 15cad95 Aug 8, 2019

README

This repository contains a QML plugin which provides a convenience
type to allow client applications to easily embed the Sailfish OS
Browser WebView into their own application in order to render web
webcontent.

Note: currently you have to explicitly link against qtmozembed-qt5
at build time, to avoid a symbol issue which leads to a crash:
CONFIG += link_pkgconfig
PKGCONFIG += qt5embedwidget

Example:

import QtQuick 2.0
import Sailfish.Silica 1.0
import Sailfish.WebView 1.0

ApplicationWindow {
    id: root
    initialPage: Component {
        Page {
            id: page
            WebView {
                anchors.fill: parent
                active: true
                url: "http://www.sailfishos.org"
            }
        }
    }
}
You can’t perform that action at this time.