退出按钮


#include <QApplication>  #include <QPushButton>    int main(int argc char *argv[])  {      QApplication app(argc argv);      QPushButton *button = new QPushButton("Quit");      Qobject::connect(button SIGNAL(clicked())                       &app SLOT(quit()));      button->show();      return app.exec();  }  



分享这篇文章:
收藏+0