Is it possible to make some 'cout' to some place sited at QTCreator ?
In case of not, can I create a console window to do this ? (in a QT gui application)
Any idea ?
Thanks
Is it possible to make some 'cout' to some place sited at QTCreator ?
In case of not, can I create a console window to do this ? (in a QT gui application)
Any idea ?
Thanks
Hi tonnot,
You don't have to create a console. Just use qDebug << "output" ; it will print the data to "Application Output" window which usually shows you the errors in the app. Also include #include <QDebug> library before using the command.
Baluk
Ok. Thank you.
And what happens when I compile my exe and I give it to my client ?
You can't show him the output window. It is for developer sake to check the application is fine. When it is handed to client you can only show him the output on the GUI by using some "Label" widget etc. .
Baluk
if i remember correctly ... there is a qmake value "QT += console" or something. But i haven't tried that.
Hi,
this is very simple. Just write:
Qt Code:
include <iostream>; using namespace std;To copy to clipboard, switch view to plain text mode
write:
Qt Code:
cout << doubleVariable << endl;To copy to clipboard, switch view to plain text mode
In Qt: switch to application output, this will be the result which will be shown in a linux or dos console.
greetz A.
Just read about message handler.
Bookmarks