测试基类指向派生类后,槽函数用虚基类连接 是否执行派生类函数

This commit is contained in:
2021-11-22 17:41:42 +08:00
parent 26c99622e7
commit 36ba2a39f3
3 changed files with 38 additions and 10 deletions

View File

@ -28,8 +28,8 @@ int main(int argc, char *argv[])
m_pqDataGrabberThreadHolder = new QThread();
m_test.moveToThread(m_pqDataGrabberThreadHolder);
m_pqDataGrabberThreadHolder->start();
m_test.StartGrabCall();
m_test.TestGrabOnce();
//m_test.StartGrabCall();
//QThread::msleep(5000);
//m_test.StopTestGrab();