#ifndef FRMCALL_H #define FRMCALL_H #include namespace Ui { class frmCall; } class frmCall : public QWidget { Q_OBJECT public: explicit frmCall(QWidget *parent = 0); ~frmCall(); protected: void resizeEvent(QResizeEvent *); private: Ui::frmCall *ui; //左侧车道数量 int leftCount; //右侧车道数量 int rightCount; //左侧车道图片和按钮集合 QList leftWidgets; //右侧车道图片和按钮集合 QList rightWidgets; private slots: void initForm(); void initDriveway(); void buttonClick(); public slots: void setLeftCount(int count); void setRightCount(int count); private slots: void on_btnOn_clicked(); void on_btnOff_clicked(); }; #endif // FRMCALL_H