VS中子对话框的关闭回调函数

新建了QDialog的子类时,如果需要回调它的关闭函数

1、加入头文件#include <QCloseEvent>

2、重写函数

protected:
void closeEvent(QCloseEvent *event);

原文地址:https://www.cnblogs.com/judes/p/9081073.html