在用多线程传opencv的Mat时,报错:
QObject::connect: Cannot queue arguments of type 'Mat'
(Make sure 'Mat' is registered using qRegisterMetaType().)
修改Connect,加一个属性Qt::directConnection.
connect(thread1, SIGNAL(freshImg(const cv::Mat &)), this, SLOT(show_img(const cv::Mat &)),Qt::DirectConnection);
参考博客:https://blog.csdn.net/sinat_24206709/article/details/55209780