Display scripts outputs to the std::cout

This commit is contained in:
Laurent Rineau 2016-10-20 17:05:11 +02:00
parent c6b9c4a349
commit e5d0b29c40
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ QScriptValue myPrintFunction(QScriptContext *context, QScriptEngine *engine)
}
if(mw) mw->message(QString("QtScript: ") + result, "");
QTextStream (stdout) << (QString("QtScript: ") + result) << "\n";
return engine->undefinedValue();
}