Qt emit
Qt调试的时候提示这个警告信息:
QObject::connect: Cannot queue arguments of type 'QItemSelection'
(Make sure 'QItemSelection' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QItemSelection'
(Make sure 'QItemSelection' is registered using qRegisterMetaType().)
No memory leaks detected.
我是在子线程中定义一个信号
signals:
void UpdateCurrentItem(const int&);
public slots:
void UpdateCurrentItem(const int&);
connect(CRunProgram::Instance(),SIGNAL(UpdateCurrentItem(const int&)),this,SLOT(UpdateCurrentItem(const int&)),Qt::DirectConnection);
m_pList->setCurrentIndex(current);