百度了很久,结果是因为自定义的结构体继承 QObject类,
而QObject的子类不可复制
错误:
B.h:977:16: error: call to implicitly-deleted copy constructor of 'A'
B.h:771:38: note: copy constructor of 'A' is implicitly deleted because base class 'C' has a deleted copy constructor
C.h:17:36: note: copy constructor of 'C' is implicitly deleted because base class 'QObject' has a deleted copy constructor
qobject.h:449:20: note: 'QObject' has been explicitly marked deleted here
为什么不能复制: