title: Deployed Qt5 Application Doesn't Print or Show Print Dialog
body: <p>I'm experiencing Qt4 to Qt5 troubles.  In my application when the user clicks the print button two things should happen, one is that a PDF gets written to disk (which still works fine in the new version, so I know that some of the printing functions are working properly) and the other is that a QPrintDialog should exec() and then send to a connected printer.</p>
  
  <p>I see the dialog when I launch from my development machine.  The application launches on the deployed machine, but the QPrintDialog never shows and the document never prints.</p>
  
  <p>I am including print support.</p>
  
  <pre><code>QT += core gui network webkitwidgets widgets printsupport
  </code></pre>
  
  <p>I have been using Process Explorer to see what DLLs the application uses on my development machine, and I believe that everything is present.  My application bundle includes:</p>
  
  <ul>
  <li>{myAppPath}\MyApp[MyApp.exe, Qt5PrintSupport.dll, ...]</li>
  <li>{myAppPath}\plugins\printsupport\windowsprintersupport.dll</li>
  <li>{myAppPath}\plugins\imageformats[ qgif.dll, qico.dll,qjpeg.dll, qmng.dll, qtga.dll, qtiff.dll, qwbmp.dll ]</li>
  </ul>
  
  <p>The following is the relevant code snippet:</p>
  
  <pre><code>void PrintableForm::printFile()
  {
      //Writes the PDF to disk in every environment
      pdfCopy();
  
      //Paper Copy only works on my dev machine
      QPrinter paperPrinter;
      QPrintDialog printDialog(&amp;paperPrinter,this);
  
      if( printDialog.exec() == QDialog::Accepted ) {
          view-&gt;print(&amp;paperPrinter);
      }
      this-&gt;accept();
  }
  </code></pre>
  
  <p>My first thought is that the relevant DLLs are not being found come print time, and that means that my application file system is incorrect, but I have not found anything that shows me a different file structure.  Am I on the right track or is there something else wrong with this setup?</p>