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

Setting printer name initializes all properties for printer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.8.3, 5.2.0 RC1
    • Fix Version/s: 5.2.1
    • Component/s: GUI: Printing
    • Labels:
      None
    • Environment:
      Windows

      Description

      If QPrinter::setPrinterName() is called after orientation has been set, the orientation is initialized to default on Windows. On Linux the set orientation will be kept even after setting the printer name.

      The following code can be used to reproduce the issue:

      QPrinter pr;
      pr.setPageSize(QPrinter::A4);
      pr.setOrientation(QPrinter::Landscape);
      pr.setPrinterName(pn); // name of the used printer
      qDebug() <<  pr.orientation();
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              johnlayt John Layt
              Reporter:
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes