![]() |
Open with Webview from onLinkActivated(link)
I have a page which deals with displaying messages produced from an external source, so far, all is working well.
Currently, when a message has been generated by the external source, the message may contain a link to take you to the operators website for further information, by clicking the link, sailfish-browser is opened, but I would actually prefer WebView to handle the page, but how do I make this work, here's my code so far; StationMessages.qml Code:
Label { MessageView.qml Code:
Page { |
Re: Open with Webview from onLinkActivated(link)
Read webcat/webpirate source code, it's not that trivial.
|
Re: Open with Webview from onLinkActivated(link)
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:
... Code:
Page { |
Re: Open with Webview from onLinkActivated(link)
Quote:
Thanks again, Regards, Mark |
All times are GMT. The time now is 19:20. |
vBulletin® Version 3.8.8