blob: 04048a6c59f87e4cbd9f4eaa3d2fcceb6f531bdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<html>
<head>
<script type="text/javascript" src="qrc:///qwebchannel/qwebchannel.js"></script>
<script type="text/javascript">
//BEGIN SETUP
var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]);
new QWebChannel(baseUrl, function(channel) {
channel.subscribe("invokeMethod", function(arg) {
myObj.myMethod(arg);
});
});
//END SETUP
</script>
</head>
<body>
</body>
</html>
|