thermaldialog = new ThermalDialog;
与
thermaldialog = new ThermalDialog();
有什么区别 好像效果一样
(ThermalDialog 是一个继承与QDialog的类;thermaldialog 是一个指向ThermalDialog的指针)
thermaldialog = new ThermalDialog;
与
thermaldialog = new ThermalDialog();
有什么区别 好像效果一样
(ThermalDialog 是一个继承与QDialog的类;thermaldialog 是一个指向ThermalDialog的指针)
没有什么区别,thermaldialog = new ThermalDialog,调用的也是无参构造函数,相当于thermaldialog = new ThermalDialog()