#ifndef SETNUMDLG_H #define SETNUMDLG_H #include namespace Ui { class SetNumDlg; } class SetNumDlg : public QDialog { Q_OBJECT public: explicit SetNumDlg(QWidget *parent = 0); ~SetNumDlg(); bool getIsSet(); int getNum(); private slots: void on_btn_confirm_clicked(); void on_btn_clearProductCnt_clicked(); private: Ui::SetNumDlg *ui; // 是否采用预设值 bool isSet = false; unsigned int num = 0; signals: void sig_setNum(); void sig_clearCnt(); }; #endif // SETNUMDLG_H