我使用 UBuntu 12.04 LTS。当我使用 Qt Creator 运行控制台应用程序时,终端上看不到 qDebug() 的输出(我只得到一个带有光标的空终端)。如何解决?
Edit1此外,我无法使用停止按钮停止程序,我必须使用强制退出选项。
Edit2这里是代码:
#include <QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug()<<"Ok";
return a.exec();
}
Edit3解决方案:Qt Creator:在终端中运行