Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Debug Script with Creator 4.4.1
any help would be appreciated
any help would be really be appreciated. I'm going bonkers
JonB last edited by
What functions and what errors?
You aren't The John Coltrane, are you?
First, I don't know why I put 4.4.1 in the title. Must have been a brain hic-up. I am running QT Creator 5.9.3.
I have tried 4.4.1 and 4.4.8 but I can't build with either of those versions because my XCode is close to the latest. The code I am trying to fix was written with QT 4.8.4, at least that was what was communicated to me.
I am trying to use
>>console.info("yada yada yada");
in a key handling function. When I press a key I get:
ReferenceError: Can't find variable: console2984
I can use
alert("nada nada nada");
and yes, I am THE john coltrane. Neighbors hate when I blow my sax at 2am 🎷;-)
Just to be clear
QtCreator is version 4.4.1.(newest) And it the IDE/editor
Qt version is not tied to creator. you can use any Qt version with it.
Like Qt4.8 (old gen) or Qt.5.9/10 (newest)
If you have Qt4.8 based code, it might need some porting to run in Qt5.9
Some classes have changed.
Also, QtScript is deprecated and superseded with QJSEngine but still fully functional in
later Qt version. ( whole of 5.X as i understand it)
There is a tool to debug QScript
And you can use
to embed into the app.
I assume this is how you use js ?
I mean via QScript ?