示例#1
0
void Overlay::mouseReleaseEvent ( QMouseEvent * e )
{
    // check if cursor not moved since click beginning
    if ((m_mouseClick) && (e->pos() == m_lastPoint))
    {
        emit mouseClickEvent();
    }
}
示例#2
0
void WLabelButton::mousePressEvent ( QMouseEvent * ev )
{
    if (ev->buttons() || Qt::LeftButton)
    {
        emit clicked();
        mouseClickEvent();
    }
}
void abstractScene::glutMouseClickEvent(int button, int state, int x, int y){
	std::cout << "glutMouseClickEvent" << endl;
	mouseClickEvent();
}