#ifndef MAINWINDOW_H #define MAINWINDOW_H #include "declarations.h" class MainWindow:public QMainWindow { Q_OBJECT public: void init_mainwindowobj(); //the function of this class explicit MainWindow(); //constructor void init_connections(); ~MainWindow(); //destructor public slots: void test_tmkopen(); private: QWidget *Window = new QWidget; QLabel *Label; QPushButton *Button; }; #endif // MAINWINDOW_H