Qt事件处理器和事件过滤器实例 (二)

2014-11-24 11:51:21 · 作者: · 浏览: 9
killTimer(timeId);
}
else if(mouseEvent->buttons() & Qt::RightButton)
{
qDebug("The Right Button Event!");

//clickNum++;
//again();
timeId = startTimer(3000);
}

return true;
}
}

//其它部件产生的事件则交给基类处理
return QMainWindow::eventFilter(target, event);
}

作者:chenlong12580