Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12225

In Windows, QPrinter::isValid should be case insensitive w.r.t. the printer name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.8.x
    • 4.6.1
    • GUI: Printing
    • None
    • Windows XP SP3, QT 4.6.1, Visual Studio 2005

      Suppose there's a printer named "ZEBRA" declared in the control panel, and I try to use it with the following piece of code :

      QPrinter printer;
      printer.setPrinterName("zebra");
      bool bValid = printer.isValid();

      QPainter painter;
      bool bBegin = painter.begin(&printer);

      Because I used lowercase while the printer is declared in uppercase, isValid() will incorrectly return false. Yet, begin() will return true, and printing will work fine (as it should).

      I think QPrinter::isValid() should be case insensitive under Windows.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            johnlayt John Layt
            jcugniere Julien Cugnière
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes