我想在关闭子窗口后执行一个函数,这是我的代码,这不能按预期工作
Preferences *dialog = new Preferences();
connect(dialog,SIGNAL(destroyed()),this,SLOT(LoadSettings()));
dialog->show();
编辑:似乎我错误地选择了QmainWIndow作为首选项对话框:-(,是否可以在不将其移植到Qdialog的情况下解决此问题?或者是否有任何简单的方法可以将Qmainwindow ui移植到Qdialog ui
Preferences *dialog = new Preferences();
connect(dialog,SIGNAL(destroyed()),this,SLOT(LoadSettings()));
dialog->exec();
delete dialog;
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句