Quote Originally Posted by aamer4yu View Post
See the attachment...
hope this helps
I changed the function, not in the best possible way, but its working now...

Qt Code:
  1. void CMainWindow::mouseMoveEvent ( QMouseEvent * event )
  2. {
  3. QPoint mousePos;
  4. mousePos = event->pos();
  5.  
  6. if( (menuBarRect.bottom() + 20) > mousePos.y() )
  7. {
  8. menuBar()->show();
  9. isMenuOn = true;
  10. }
  11. else
  12. {
  13. menuBar()->hide();
  14. isMenuOn = false;
  15. }
  16.  
  17. QMainWindow::mouseMoveEvent(event);
  18. }
To copy to clipboard, switch view to plain text mode