我有一个自定义类MbThread,继承了QThread类,我想把MbThread类的实例加入到
QList <MbThread> mbthreadArray中,如:
xx.h
...
//declare
QList <MbThread> mbthreadArray;
...
xx.cpp
...
MbThread mb;
mbthreadArray.append(mb);
...
但编译时总报错:
error: 'QObject& QObject::operator=(const QObject&)' is private
error: 'QMutex& QMutex::operator=(const QMutex&)' is private
...
不知什么原因,请问有什么解决办法吗?