Created
February 27, 2012 23:48
-
-
Save diorahman/1927963 to your computer and use it in GitHub Desktop.
Silence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 1.1 | |
import QtWebKit 1.0 | |
import com.nokia.meego 1.0 | |
Page { | |
id: root | |
tools: commonTools | |
WebView { | |
javaScriptWindowObjects: QtObject { | |
WebView.windowObjectName: "qml" | |
function qmlCall() { | |
console.log("This call is in QML!"); | |
} | |
} | |
html: "<script>console.log(\"This is in WebKit!\"); window.qml.qmlCall(); alert('yeah')</script>" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output is only "This call is in QML!"