kuikuitage

  博客园  ::  :: 新随笔  :: 联系 ::  :: 管理
connect(this->m_timer, SIGNAL(timeout()), this, SLOT(this->onTimerSnapSlot()));

添加槽之后,不能connect的时候不能使用this调用,这里无法解析this->onTimerSnapSlot()

只能这样写

connect(this->m_timer, SIGNAL(timeout()), this, SLOT(onTimerSnapSlot()));
posted on 2020-05-02 16:42  kuikuitage  阅读(611)  评论(0编辑  收藏  举报