Some change with input object

This commit is contained in:
Krad
2021-10-21 10:03:02 +08:00
parent a0e329f7ab
commit d8de0d5878
3 changed files with 30 additions and 34 deletions

View File

@@ -101,6 +101,7 @@ void DeviceManager::timerEvent(QTimerEvent *event) {
//preview scan
else{
const char * data = GetPreviewData();
if (!data) return;
QByteArray bytes =QByteArray::fromRawData(data,140*140);
TRIGGER_EVENT(GUIEvents::ResponsePreviewData, nullptr, (QObject*)(&bytes));
delete [] data;