我不使用QPushButton,而用QLabel
#include <QApplication>
#include <QLabel>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
//QPushButton quit("Quit");
//QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));
//quit.show();
QLabel label("hello");
label.show();
return app.exec();
}可以在codeblocks下运行
莫非是codeblocks不支持QPushButton?