Qt5: QJSEngine, QObject and slots
-
Can the new Qt5 QJSEngine hook signals to javascript functions like the old "javascript engine can":http://doc.qt.digia.com/latest/script-calculator.html?
I've tried but was not successful I've been studying the Qt5 source code and cannot find this either, but I'm no expert in Qt source code so I could easily have missed it.
-
Hi, ~altera_2011!
No. V8 engine (new Qt engine in Qt5) does not support signal-slots with QObjects. But old engine is accessable as add-on.
Thread I've opened has really clear Tobias's reply: http://qt-project.org/forums/viewthread/21798/
-
That's a shame. I guess we'll have to stick with the old engine for now. I've dug around trying to figure out how add slot/signal support but that is entirely non-trivial.