Running Qt under Windows and for some reason it can't find the printers (there are 7 including both network and usb printers).

Here's the relevant code:
Qt Code:
  1. QT += sql \
  2. printsupport \
  3. serialport \
  4. xml \
  5. network \
  6. widgets
  7.  
  8.  
  9. from mainwindow.h
  10. #include <QPrinter>
  11. #include <QPrintDialog>
  12. #include <QPrinterInfo>
  13.  
  14. from mainwindow.cpp
  15. QList <QPrinterInfo> plist = QPrinterInfo::availablePrinters();
  16. qDebug() << "len = " << plist.length(); // len comes back zero
  17.  
  18. QPrinter printer;
  19. printer.setPrinterName("DYMO LabelWriter 450");
  20. qDebug() << "printer valid? " << printer.isValid(); // comes back false
To copy to clipboard, switch view to plain text mode 

I have another application that uses the same code and it reports 7 printers and prints to the Dymo just fine.
Any idea what I am missing here?