We got the mouse events on the title bar using the following code in windows
Qt Code:
  1. bool RightSideBar::winEvent(MSG *msg, long *result)
  2. {
  3. if (msg->message == WM_NCLBUTTONUP)
  4. {
  5. //here can catch the leftmousedown event on titlebar
  6. qDebug()<<"Title Bar Button Down";
  7. }
  8. return false;
  9. }
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?