mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 14:47:19 +02:00
restore onNewViewRequested
This commit is contained in:
parent
a1ae9eebf2
commit
6272db42da
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ WebEngineView {
|
|||
}
|
||||
}
|
||||
|
||||
onNewViewRequested:{
|
||||
var component = Qt.createComponent("../Browser.qml");
|
||||
var newWindow = component.createObject(desktop);
|
||||
request.openIn(newWindow.webView)
|
||||
}
|
||||
|
||||
// This breaks the webchannel used for passing messages. Fixed in Qt 5.6
|
||||
// See https://bugreports.qt.io/browse/QTBUG-49521
|
||||
|
|
Loading…
Reference in a new issue