title: QMainWindow stops receiving QEvent::UpdateRequest when user opens menu or resizes window
body: <p>MyWindow which inherits from QMainWindow. MyWindow contains a QGLWidget that displays an animation. </p>
  
  <p>The problem is that the animation pauses whenever I open a menu or resize the window. </p>
  
  <p>The animation is implemented by calling <code>QCoreApplication::postEvent(this, new QEvent(QEvent::UpdateRequest))</code> periodically, then calling redrawing each time the window receives the <code>QEvent::UpdateRequest</code>, like this: </p>
  
  <pre><code>bool MyWindow::event(QEvent *event)
  {
      qDebug() &lt;&lt; event;
      switch (event-&gt;type())
      {
          case QEvent::UpdateRequest:
              render();
              return true;
          default:
              return QMainWindow::event(event);
      }
  }
  </code></pre>
  
  <p>As seen from <code>qDebug()</code>, while a menu is open or the window is being resized, the window stops receiving update request events. </p>
  
  <p>Is there a setting on QMainWindow/QWidget to make it continue to receive update request events? Or is there some better way to implement the animation? </p>
  
  <p><strong>Edit</strong>: I'm on Mac OS X. </p>