https://github.com/frankencode/qmlscriptconsole
The QML Script Console
https://github.com/frankencode/qmlscriptconsole
Last synced: 14 days ago
JSON representation
The QML Script Console
- Host: GitHub
- URL: https://github.com/frankencode/qmlscriptconsole
- Owner: frankencode
- License: other
- Created: 2013-08-06T08:52:36.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-06T09:10:20.000Z (over 12 years ago)
- Last Synced: 2024-06-16T04:35:41.573Z (over 1 year ago)
- Language: C++
- Size: 184 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
- License: COPYING
Awesome Lists containing this project
- awesome-qt-qml - qmlscriptconsole - The QML Script Console. (Development)
README
h1. The QML Script Console
ECMAScript console plugin for debugging QML applications. Adds a "ScriptConsole" component which opens a script editor window and allows code to executed in that context.
For instance consider:
import QtQuick 1.0
import com.nokia.ScriptConsole 1.0
Text {
text: "Hello, ECMAScript!"
ScriptConsole {}
}
Entering "parent.text = 'Hello, echo!'" into the script console allows you to change the text at runtime. The idea is to allow experimenting with ECMAScript expressions interactively.
h2. Build instructions
You need a full Qt >4.7 build environment. For building the plugin enter (from the source folder):
qmake
make
Open the 'test.qml' to check it is working:
qmlviewer -I $PWD test.qml
You have to pass the plugin path to the QML viewer whenever you want to use the plugin. Check the imports by optionally setting QML_IMPORT_TRACE, like:
QML_IMPORT_TRACE=1 qmlviewer -I path/to/qmlscripconsole myapp.qml