title: How to Handle Windows Messages using QCoreApplication::winEventFilter
body: <p>I am trying to implement winEventFilter in my QT application using QT Creator, QT SDK and Windows APIs</p>
  
  <p>Declared the below in my class file</p>
  
  <pre><code>bool winEventFilter( MSG * msg, long * result )
  {
      if( msg-&gt;message == WM_QUERYENDSESSION)
          DebugLog("shutdown");
      else
          DebugLog("Quit") ;    
  }
  </code></pre>
  
  <p>I am calling the above method in the following way</p>
  
  <pre><code>MSG * msg;
  long * result;
  
  winEventFilter(msg, result);
  </code></pre>
  
  <p>When I logoff or shutting down my computer it never prints the log <strong>shutdown</strong></p>