title: QPrintDialog and setting up the printer
body: <p>I am working on an application that uses the Qt library on Windows.</p>
  
  <p>I want the user to be able to configure the printer where the application should print.  So my main menu will contain the following entries:</p>
  
  <ul>
  <li>Printer Setup...: should show a dialog where the user can select and configure the printer</li>
  <li>Print...: perform the actual print</li>
  </ul>
  
  <p>In other, non-Qt, applications I used the Windows function PrintDlg with the flag PD_PRINTSETUP.  This showed the following dialog, which is exactly what I want:
  <img src="https://i.stack.imgur.com/2ace2.png" alt="enter image description here"></p>
  
  <p>However, the Qt function QPrintDialog uses the more recent PrintDlgEx function, which looks like this:
  <img src="https://i.stack.imgur.com/ZELc8.png" alt="enter image description here"></p>
  
  <p>This dialog seems to be intended for actual printing.  Not for setting and configuring the printer.</p>
  
  <ul>
  <li>It shows a Print button instead of simply OK.</li>
  <li>It contains a 'Page Range' group box, which isn't really useful when setting up the printer configuration.</li>
  </ul>
  
  <p>The QPageSetupDialog isn't really useful in my case either.  It looks like this:
  <img src="https://i.stack.imgur.com/AxR7c.png" alt="enter image description here">
  So this only makes it useful for setting the page size, the orientation and the margins.</p>
  
  <p>Is there a clean way in Qt to get a decent printer configuration dialog?</p>
  
  <p>If I can't find a clean way, I need to revert to the native Windows PrintDlg function, which means patching or duplicating the code in the Qt source qprintdialog_win.cpp.</p>