View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#4
Originally Posted by llelectronics View Post
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
Thank you @llelectronics, that does the trick!....I had been playing with pageStack, I got the webview to open, but couldn't get it to populate with the page, because I was missing the simple 'gotoUrl' function you've shown me!, excellent!

Thanks again,

Regards,

Mark
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following 2 Users Say Thank You to Markkyboy For This Useful Post: