麻烦看看代码:
#include <QApplication>
#include <QPushButton>
#include <qdebug.h>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qDebug("just test\n\r");
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
我想在cmd窗口中打印出just test的字符,可是为什么不行呢?