Thank you very much for helping me to check for button click signals. The problem was that! My custom button was not emitting the signal due to a small mistake in void mousePressEvent(QMouseEvent * event).
{
if(event->button() == Qt::RightButton)
{
return;
}
else if(event->button() == Qt::MiddleButton)
{
return;
}
else // I forgot to add the else case and return the necessary event
{
}
}
void mousePressEvent(QMouseEvent * event)
{
if(event->button() == Qt::RightButton)
{
return;
}
else if(event->button() == Qt::MiddleButton)
{
return;
}
else // I forgot to add the else case and return the necessary event
{
QToolButton::mousePressEvent(event);
}
}
To copy to clipboard, switch view to plain text mode
Thank you.
Bookmarks