Example #1
0
void GLScene::mouseReleaseEvent(QMouseEvent *event) {
    if (event->button() == Qt::RightButton) {
        emit mouseRightButtonReleased();
    } else
    if (event->button() == Qt::LeftButton) {
        emit mouseLeftButtonReleased();
    }
}
Example #2
0
void CPushButton::mouseReleaseEvent(QMouseEvent *event){
    if(event->button() == Qt::LeftButton)
    {
        emit mouseLeftButtonReleased();
    }
    else{
        emit mouseRightButtonReleased();
    }

    event->ignore();
}
Example #3
0
void CPushButton::pressed(){
    emit mouseLeftButtonReleased();
}