How to send a Qt signal containing a cv::Mat?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: In short, I get following error: QObject :: connect : Cannot queue arguments of type 'cv::Mat' ( Make sure 'cv::Mat' is registered using qRegisterMetaType ().) What I'm trying to do is send a signal containing two cv::Mat images from a QThread to the main thread, so that I can display the output. There's no compile time error, but when I run the program, it gets stuck at a breakpoint in qglobal.h ( inline void qt_noop() {} ). I've tried to add Q_DECLARE_METATYPE(cv::Mat) to the code, to no avail. I'm quite suck with what to do now.