QT dialog close and delete

后端 未结 3 1704
走了就别回头了
走了就别回头了 2021-01-16 10:11

I have a MainWindow and Type class.

A button in the MainWindow sends a signal to a slot with this code:

dialog = new QDialog(this);

Ui_type typeui;
         


        
3条回答
  •  一整个雨季
    2021-01-16 10:42

    The simple way to get input from a modal dialog is QDialog::exec(). This may handle everything you need.

提交回复
热议问题