鼠标双键事件兑现办法

鼠标双键事件实现办法
最近刚学Qt,做一个扫雷实验,不知鼠标双键事件如何实现。左键和右键可以用LeftButton,RightButton来判断,但是如果要左右键同时按下要怎么判断,鼠标双键事件兑现办法求指教。

------解决方案--------------------
这个是可以实现的


void MainWindow::mousePressEvent(QMouseEvent *event)
{
    if(event->buttons() == (Qt::LeftButton 
------解决方案--------------------
 Qt::RightButton))
            qDebug()<< "left right  press";
    QMainWindow::mousePressEvent(event);
}