Dear Friends
I am trying to trap the rightMousemove event()
void GraphicsViewMesh::mouseMoveEvent(QMouseEvent *me)
{
if(me->button() & Qt::RightButton)
{
zoomIn();
}
}
//can anyone tell me whats wrong in this my zoomIn() function is not working !
Dear Friends
I am trying to trap the rightMousemove event()
void GraphicsViewMesh::mouseMoveEvent(QMouseEvent *me)
{
if(me->button() & Qt::RightButton)
{
zoomIn();
}
}
//can anyone tell me whats wrong in this my zoomIn() function is not working !
Hi,
Change this line:
Qt Code:
if(me->button() == Qt::RightButton)To copy to clipboard, switch view to plain text mode
In your statment
You are asking if "me->button()" and "Qt::RightButton" are equal to 1(or true).Qt Code:
if(me->button() & Qt::RightButton)To copy to clipboard, switch view to plain text mode
Òscar Llarch i Galán
Bookmarks