在用多線程傳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