24,860
社区成员




#include <QApplication>
#include <QMainWindow>
#include <QResizeEvent>
#include <QMessageBox>
class MyWind:public QMainWindow{
void resizeEvent ( QResizeEvent * event ) {
QMessageBox msg;
msg.setText("The size has been modified.");
msg.exec();
}
};
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWind *main = new MyWind();
main->show();
return app.exec();
}
QEvent::Resize