Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QtCore/qdebug.h>
- #include <QtCore/qcoreapplication.h>
- #include <iostream>
- using namespace std;
- int main(int argc, char **argv)
- {
- cout << "pluto" << endl;
- QCoreApplication app(argc, argv);
- qDebug() << "pippo" << endl;
- return app.exec();
- //return 0;
- }
- qmake ...other args... CONFIG+=console
- #include <QTextStream>
- QTextStream cout(stdout);
- cout << "stringn";
- QTextSteam cerr(stderr);
- cerr << "error!n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement