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

Setting printer name initializes all properties for printer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.1
    • 4.8.3, 5.2.0 RC1
    • GUI: Printing
    • None
    • 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

              johnlayt John Layt
              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