#ifndef _H_QPLCINDEXUI_H_ #define _H_QPLCINDEXUI_H_ #include #include "ui_QPLCIndexUI.h" class QPLCIndexUI : public QDialog { Q_OBJECT public: QPLCIndexUI(QWidget *parent = Q_NULLPTR); ~QPLCIndexUI(); void setModelName(QString strName); void setModelIndex(int val); int getModelIndex(); Q_SLOT void onButtonClicked(); protected: virtual void changeEvent(QEvent *event); private: Ui::QPLCIndexUI ui; }; #endif