class CMainWindow : public QMainWindow, public Ui::MainWindow{Q_OBJECTpublic: CMainWindow( QWidget * parent = 0, Qt::WFlags f = 0 );private slots: void on_action_item1_triggered();};CMainWindow::CMainWindow( QWidget * parent, Qt::WFlags f) : QMainWindow(parent, f){ setupUi(this);}//void CMainWindow::on_action_item1_triggered(){ close();;}