connect(this->m_timer, SIGNAL(timeout()), this, SLOT(this->onTimerSnapSlot()));
添加槽之后,不能connect的时候不能使用this调用,这里无法解析this->onTimerSnapSlot()
只能这样写
connect(this->m_timer, SIGNAL(timeout()), this, SLOT(onTimerSnapSlot()));
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3