title: Qt application doesn't block when run from command-line
body: <p>If I run a Qt application directly from the Windows command-line (<code>cmd</code>), it immediately returns back to the shell even as the GUI continues running; I assume it creates a second process before the parent exits.</p>
  
  <p><img src="https://i.stack.imgur.com/RucBR.png" alt="Qt application running while the terminal is at a new shell prompt"></p>
  
  <p>If I run the Qt application indirectly though, from a batch file or Python script, it doesn't behave the same way; it blocks until the application actually exits:</p>
  
  <p><img src="https://i.stack.imgur.com/Lran9.png" alt="Qt application running while the terminal blocks"></p>
  
  <p>Is this standard Qt behavior? I can't find any mention of it in the documentation or anywhere else. Can it be customized? I would prefer that the application always block when run from the command-line.</p>