
Originally Posted by
aamer4yu
See the attachment...
hope this helps

I changed the function, not in the best possible way, but its working now...
void CMainWindow
::mouseMoveEvent ( QMouseEvent * event
) {
mousePos = event->pos();
if( (menuBarRect.bottom() + 20) > mousePos.y() )
{
menuBar()->show();
isMenuOn = true;
}
else
{
menuBar()->hide();
isMenuOn = false;
}
}
void CMainWindow::mouseMoveEvent ( QMouseEvent * event )
{
QPoint mousePos;
mousePos = event->pos();
if( (menuBarRect.bottom() + 20) > mousePos.y() )
{
menuBar()->show();
isMenuOn = true;
}
else
{
menuBar()->hide();
isMenuOn = false;
}
QMainWindow::mouseMoveEvent(event);
}
To copy to clipboard, switch view to plain text mode
Bookmarks