title: How to know when a new USB storage device is connected in Qt?
body: <p>I want to know when a USB device is connected to the computer that my Qt application is running on (in Windows). In my main QWidget, I've reimplemented <code>winEventFilter</code> like this:</p>
  
  <pre><code>bool winEventFilter ( MSG * msg, long * result ) {
      qDebug() &lt;&lt; msg;
      return false;
  }
  </code></pre>
  
  <p>I'd expect qDebug to send at least something when I connect a USB device, but I don't get anything.</p>
  
  <p>I'm guessing that I'm fundamentally misunderstanding the process here - this is my first Qt app!</p>