fix:macos QAdbProcess收不到finished信号

This commit is contained in:
Barry 2018-11-24 20:44:47 +08:00
parent a0dfc4dbf3
commit 0c21c9874a
3 changed files with 11 additions and 7 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before After
Before After

View file

@ -1,5 +1,6 @@
#include <QDesktopWidget> #include <QDesktopWidget>
#include <QMouseEvent> #include <QMouseEvent>
#include <QTimer>
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
#include <Windows.h> #include <Windows.h>
#endif #endif
@ -79,6 +80,8 @@ VideoForm::VideoForm(const QString& serial, QWidget *parent) :
m_frames.unLock(); m_frames.unLock();
},Qt::QueuedConnection); },Qt::QueuedConnection);
// fix: macos cant recv finished signel, timer is ok
QTimer::singleShot(0, this, [this](){
// support 480p 720p 1080p // support 480p 720p 1080p
//m_server->start("P7C0218510000537", 27183, 0, 8000000, ""); //m_server->start("P7C0218510000537", 27183, 0, 8000000, "");
//m_server->start("P7C0218510000537", 27183, 1080, 8000000, ""); //m_server->start("P7C0218510000537", 27183, 1080, 8000000, "");
@ -88,6 +91,7 @@ VideoForm::VideoForm(const QString& serial, QWidget *parent) :
// support wireless connect // support wireless connect
//m_server->start("192.168.0.174:5555", 27183, 720, 8000000, ""); //m_server->start("192.168.0.174:5555", 27183, 720, 8000000, "");
});
} }
VideoForm::~VideoForm() VideoForm::~VideoForm()