#ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include "base/HGThread.h" QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(const std::string &appName, const std::string &pkgPath, QWidget *parent = nullptr); ~MainWindow(); signals: void closeWnd(); private: static void ThreadFunc(HGThread thread, HGPointer param); private: Ui::MainWindow *ui; std::string m_appName; std::string m_pkgPath; HGThread m_thread; }; #endif // MAINWINDOW_H