we need to get the mouse up event on Application's Title bar in Windows and MAC OS.In window we got the solution,but in MAC we don't know how to get mouse up event on Title bar.
//Function for getting Mouse Event on TitleBar in Windows.
#ifdef Q_OS_WIN
bool RightSideBar::winEvent(MSG *msg, long *result)//This function working fine in our application
{
switch (msg->message)
{
case 562:
{
qDebug()<<"Using Windows API Mouse Button UP"<<msg->message;
return false;
break;
}
}
return false;
}
#endif
//End Function for getting Mouse Event on TitleBar in Windows.
//Function for getting Mouse Event on TitleBar in MAC.
#ifdef Q_OS_MAC
bool RightSideBar::macEvent(EventHandlerCallRef caller, EventRef event)
{
qDebug()<<"Inside MAC event.....";//we dont know how to get mouse event here
return false;
}
#endif
//Function for getting Mouse Event on TitleBar in Windows.
#ifdef Q_OS_WIN
bool RightSideBar::winEvent(MSG *msg, long *result)//This function working fine in our application
{
switch (msg->message)
{
case 562:
{
qDebug()<<"Using Windows API Mouse Button UP"<<msg->message;
return false;
break;
}
}
return false;
}
#endif
//End Function for getting Mouse Event on TitleBar in Windows.
//Function for getting Mouse Event on TitleBar in MAC.
#ifdef Q_OS_MAC
bool RightSideBar::macEvent(EventHandlerCallRef caller, EventRef event)
{
qDebug()<<"Inside MAC event.....";//we dont know how to get mouse event here
return false;
}
#endif
To copy to clipboard, switch view to plain text mode
please help us..
Bookmarks