#ifndef RUNTIMEDIALOG_H #define RUNTIMEDIALOG_H #include #include // 运行时对话框 class RuntimeDialog : public QDialog { Q_OBJECT public: RuntimeDialog(QWidget* parent = nullptr); void setContent(QWidget* content); signals: void exitRuntime(); protected: void keyPressEvent(QKeyEvent* event) override; private: QVBoxLayout* _layout; }; #endif //RUNTIMEDIALOG_H