When all goes according to script Qt application development
summary
Explains why QQmlEngine (QML/V4) is a practical successor to deprecated QtScript by showing a working script runner that loads plain .js via a tiny QML wrapper, calls a specified function, and returns its QString result; demonstrates exporting QObjects with setContextProperty, built‑in Qt.include and console logging, timers and binding‑driven re‑evaluation, a URL interceptor for whitelist/resource loading, on‑the‑fly mock QObject types and widget instantiation — all running headless and successfully.
AI-written summary · about
chapters (27)
- 0:00Intro
- 0:38Application scripting
- 2:51Overview
- 4:57QML Engine
- 7:05JavaScript
- 10:35QtL Engine
- 14:32QtL Modules
- 20:52Script Runner
- 22:17HelloWorldHelloWords
- 23:20Console object
- 24:19Modify script runner
- 26:09Simple value
- 27:21Slots
- 28:35Export
- 29:29Torchic
- 30:27declarative programming
- 32:02repetitive programming
- 33:30all functions
- 37:32cumin engine
- 39:27application ID
- 41:28simple
- 42:24revision timer
- 43:26UI usage
- 44:36Switch warning
- 45:22More examples
- 46:44File selector
- 47:40Debug directory
related talks
13mHow to develop native cross-platform apps in QML & JavaScript with the Qt and V-Play SDK
49mJavaScript Streaming - A Qwik glimpse into the future
45mJavaScript Streaming - A Qwik glimpse into the future
45mEmscripten
21mFROM ANGULAR TO QWIK: THE FRAMEWORK THAT CHANGES THE PARADIGM
15mThinking Qwik!
49mQwik: Streaming JavaScript framework
10mSerious Programming with jq?! A Practical and ...!
