在QT中关闭子窗口后如何执行功能

速动

我想在关闭子窗口后执行一个函数,这是我的代码,这不能按预期工作

Preferences *dialog = new Preferences();
connect(dialog,SIGNAL(destroyed()),this,SLOT(LoadSettings()));
dialog->show();

编辑:似乎我错误地选择了QmainWIndow作为首选项对话框:-(,是否可以在不将其移植到Qdialog的情况下解决此问题?或者是否有任何简单的方法可以将Qmainwindow ui移植到Qdialog ui

0xFFFFFFFF
Preferences *dialog = new Preferences();
connect(dialog,SIGNAL(destroyed()),this,SLOT(LoadSettings()));
dialog->exec();
delete dialog;

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章