void MainWindow::on_ThermalButton_clicked()
{
thermaldialog = new ThermalDialog ;
thermaldialog->exec();
}
我在父窗口点击按钮 出来一个新的 Dialog 在关闭这个Dialog 问题是怎么避免内存泄漏问题
void MainWindow::on_ThermalButton_clicked()
{
thermaldialog = new ThermalDialog ;
thermaldialog->exec();
}
我在父窗口点击按钮 出来一个新的 Dialog 在关闭这个Dialog 问题是怎么避免内存泄漏问题
void MainWindow::on_ThermalButton_clicked()
{
thermaldialog = new ThermalDialog (this);
thermaldialog->exec();
}