Newbie to QT QML and sorry if its just very simple ask.
I have simple piece of code that demonstrate WebEngine Qt Quick example.
/* runtime.qml*/
import QtQuick 2.1
import QtQuick.Controls 1.1
import QtWebEngine 1.1
ApplicationWindow {
width: 1080
height: 1488
visible: true
flags: Qt.WindowFullScreen | Qt.FramelessWindowHint
WebEngineView {
url: "http://www.qt.io"
anchors.fill: parent
}
}
It simply would display a web page and is invoked by following script:
#!/bin/sh
exec /usr/bin/qt5/qmlscene "$1" runtime.qml
This script is triggered when widget placed on some "other window" is clicked
Now, I want that surface created by runtime.qml to be destroyed when someone goes back to "other window" from where script is triggered.