Add clicked event for push button : QPushButton « Qt « C++. ... new QPushButton("Quit"); QObject::connect(button, SIGNAL(clicked()),&app, SLOT(quit())); ...
確定! 回上一頁