diff --git a/ledset/pcaprethread.cpp b/ledset/pcaprethread.cpp index 339db72..2f1976d 100644 --- a/ledset/pcaprethread.cpp +++ b/ledset/pcaprethread.cpp @@ -1,6 +1,7 @@ #include "pcaprethread.h" PcapReThread::PcapReThread(pcap_t *pcap) : pcap(pcap) { + qRegisterMetaType("Resp"); connect(this, &QThread::finished, this, &QThread::deleteLater); connect(this, &PcapReThread::onMsg, this, [](Resp resp, const QByteArray data) { resp.callback(data);