1、为什么QT程序有时候直接用构造函数创建对象,有时候用new创建对象
2、为什么QT用new创建对象后不用delete
答案在这里:
http://shouce.jb51.net/qt-beginning/48.html
1、为什么QT程序有时候直接用构造函数创建对象,有时候用new创建对象
2、为什么QT用new创建对象后不用delete
答案在这里:
http://shouce.jb51.net/qt-beginning/48.html