forked from jeena/FeedTheMonkey
initial commit
This commit is contained in:
parent
3ff4969946
commit
da9216ce09
12 changed files with 551 additions and 0 deletions
14
Content.qml
Normal file
14
Content.qml
Normal file
|
@ -0,0 +1,14 @@
|
|||
import QtWebKit 3.0
|
||||
|
||||
WebView {
|
||||
id: webview
|
||||
url: "content.html"
|
||||
onNavigationRequested: {
|
||||
if (request.navigationType != WebView.LinkClickedNavigation) {
|
||||
request.action = WebView.AcceptRequest;
|
||||
} else {
|
||||
request.action = WebView.IgnoreRequest;
|
||||
Qt.openUrlExternally(request.url);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue