First - use CODE tags.
Second - your code is a mess.
Third - There's several issues with your code and the error messages tell you everything you need to know.
To make your code compile you need to change line
class modbusarm
:public QMainWindow,
public Ui_modbusarm
::MainWindow
class modbusarm:public QMainWindow,public Ui_modbusarm::MainWindow
To copy to clipboard, switch view to plain text mode
to
class modbusarm
: public QMainWindow,
public Ui_modbusarm
class modbusarm : public QMainWindow, public Ui_modbusarm
To copy to clipboard, switch view to plain text mode
and delete line
~modbusarm();
~modbusarm();
To copy to clipboard, switch view to plain text mode
But I would question why you are inheriting from Ui_modbusarm?
Wouldn't it be simpler to do it correct way:
{
Q_OBJECT
public:
modbusarm()
:
ui( new Ui::modbusarm )
{
ui->setupUi( this );
// more stuff here ...
// more stuff here ...
// more stuff here ...
}
private:
Ui::modbusarm* ui;
};
class modbusarm:public QMainWindow
{
Q_OBJECT
public:
modbusarm()
:
ui( new Ui::modbusarm )
{
ui->setupUi( this );
// more stuff here ...
// more stuff here ...
// more stuff here ...
}
private:
Ui::modbusarm* ui;
};
To copy to clipboard, switch view to plain text mode
Bookmarks