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

Setting setOutputFormat and setOutputFilename in QPrinter has to be in specific order

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • 4.8.x
    • 4.7.4
    • GUI: Printing
    • None
    • OsX 10.6.8 10.7.1

    Description

      The output file name must be set first, then the format as:

      printer->setOutputFilename(pdf_file_name);
      printer->setOutputFormat(QPrinter::NativeFormat);

      in reverse the order, it does not work.
      One solution for that can be that the output format is set by default to QPrinter::NativeFormat.

      Attachments

        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:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes