The drawback of signal/slots ?
-
qRegisterMetaType<Mat>(); qRegisterMetaType<vector<Mat>>();should fix it, provided there's also:
Q_DECLARE_METATYPE(Mat) Q_DECLARE_METATYPE(vector<Mat>)somewhere in the header(s).
Thanks. Actually I did what you displayed, but it works until I use Qt:DirectConnection.
-
Thanks. Actually I did what you displayed, but it works until I use Qt:DirectConnection.
@VincentLiu said in The drawback of signal/slots ?:
Actually I did what you displayed
Not according to the snippet you posted. Bear in mind:
qRegisterMetaType<Mat>();and
qRegisterMetaType<Mat>("Mat");are different things in principle.
-
@VincentLiu said in The drawback of signal/slots ?:
Actually I did what you displayed
Not according to the snippet you posted. Bear in mind:
qRegisterMetaType<Mat>();and
qRegisterMetaType<Mat>("Mat");are different things in principle.
@kshegunov Really !!! Thanks, I'll try it