View Single Post
Posts: 426 | Thanked: 1,812 times | Joined on Dec 2013
#3
It seems to me like you are searching for the pageStack feature to allow attaching a new page with the webview which should load the url for you.

You can easily to this that way.

StationMessages.qml
Code:
...
onLinkActivated: pageStack.push(Qt.resolvedUrl("MessageView.qml"), {"gotoUrl": link})
MessageView.qml
Code:
Page {
    property string gotoUrl
    SilicaWebView {
        anchors.fill: parent
        header: PageHeader { title: "Message view" }
        url: gotoUrl
    }
}
Of course the MessageView.qml maybe needs some GUI elements aswell like a simple bar with back button or reload stop button. Thats something you can take a look at harbour-tidings. It has a simple and easy toolbar (in contrast to my Webcat browser which has a very complicated toolbar thingy): https://github.com/pycage/tidings/bl...bPage.qml#L106
__________________
Donation for my sailfish apps via PayPal

Donate using Liberapay
 

The Following 5 Users Say Thank You to llelectronics For This Useful Post: