.h
#include <QCloseEvent>//... ...void closeEvent(QCloseEvent *e);
.cpp
void XXX::closeEvent(QCloseEvent *e){// 想要实现的操作this->close();}
时间:2021-09-07 12:27:53
#include <QCloseEvent>//... ...void closeEvent(QCloseEvent *e);
void XXX::closeEvent(QCloseEvent *e){// 想要实现的操作this->close();}