Qt : 5.4.1 msvc-opengl 64
Compiler: visual studio 2013 community
Successfully compile QCAD, but once I run the application, When executed to the above code segment, the exception is thrown
(the autostart.js script is loaded correctly). Thank you very much for your reply.
Code: Select all
QVariant RScriptHandlerEcma::eval(const QString& script, const QString& fileName) {
QScriptValue err = engine->evaluate(script, fileName);
if (engine->hasUncaughtException()) {
qWarning()
<< "RScriptHandlerEcma::eval: script engine exception: "
<< err.toString();
qWarning() << engine->uncaughtExceptionBacktrace().join("\n");
}
return err.toVariant();
}
Code: Select all
[36mRDxfPlugin.cpp:9, bool __cdecl RDxfPlugin::init(void):[0m
15:47:54: Debug: RDxfPlugin::init
[31mRScriptHandlerEcma.cpp:1024, class QVariant __cdecl RScriptHandlerEcma::eval(const class QString &,const class QString &):[0m
Warning: RScriptHandlerEcma::eval: script engine exception: "ReferenceError: Can't find variable: QPlainTextEdit"
[31mRScriptHandlerEcma.cpp:1027, class QVariant __cdecl RScriptHandlerEcma::eval(const class QString &,const class QString &):[0m
Warning: "<eval>() at E:/backup/qcad/scripts\library.js:2339
<native>('library.js') at -1
<global>() at scripts\autostart.js:20"
[31mRScriptHandlerEcma.cpp:950, __cdecl RScriptHandlerEcma::~RScriptHandlerEcma(void):[0m
Warning: At least one uncaught exception:
[31mRScriptHandlerEcma.cpp:951, __cdecl RScriptHandlerEcma::~RScriptHandlerEcma(void):[0m
Warning: "<eval>() at E:/backup/qcad/scripts\library.js:2339
<native>('library.js') at -1
<global>() at scripts\autostart.js:20"
[36mREcmaHelper.cpp:748, void __cdecl REcmaHelper::printStackTrace(class QScriptContext *):[0m
15:47:54: Debug: "<global>() at 2339"