- write the code the usual console output way, e.g. "std::cout << ...", Note that any QString object must be quoted inside "qPrintable" function, e.g. "std::cout << qPrintable(QString("hello")) << .."
- enter "qmake -project"
- add "CONFIG += console" to the xxx.pro file
- enter "qmake"
- enter "make"
No comments:
Post a Comment