We got the mouse events on the title bar using the following code in windows
bool RightSideBar::winEvent(MSG *msg, long *result)
{
if (msg->message == WM_NCLBUTTONUP)
{
//here can catch the leftmousedown event on titlebar
qDebug()<<"Title Bar Button Down";
}
return false;
}
bool RightSideBar::winEvent(MSG *msg, long *result)
{
if (msg->message == WM_NCLBUTTONUP)
{
//here can catch the leftmousedown event on titlebar
qDebug()<<"Title Bar Button Down";
}
return false;
}
To copy to clipboard, switch view to plain text mode
But what should we do to get mouse events on title bar in MAC.
Any help?
Bookmarks