1) 构造了QObject 子类,却发现QObject没有构造函数 和 赋值函数
QObject has neither a copy constructor nor an assignment operator. This is by design. Actually, they are declared, but in a private section with the macro Q_DISABLE_COPY(). In fact, all Qt classes derived from QObject (direct or indirect) use this macro to declare their copy constructor and assignment operator to be private. The reasoning is found in the discussion on Identity vs Value on the Qt Object Model page.
在编程过程中,我使用了审计模式中的原型模式,用到了拷贝构造函数。而这个类是从QObject派生出来了自定义类,所以,只好自己维护这个变量的释放。