From e5d0b29c4069bea52e6b4103c6d4766fb949eb42 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 20 Oct 2016 17:05:11 +0200 Subject: [PATCH] Display scripts outputs to the std::cout --- Polyhedron/demo/Polyhedron/MainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Polyhedron/demo/Polyhedron/MainWindow.cpp b/Polyhedron/demo/Polyhedron/MainWindow.cpp index 8417b6dfab1..bb5a4e2af56 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.cpp +++ b/Polyhedron/demo/Polyhedron/MainWindow.cpp @@ -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(); }