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

QPageSetupDialog does not initially select provided QPrinter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.11
    • 5.1.1
    • GUI: Printing
    • None
    • Qt 5.1.1
      OSX 10.8.5

    Description

      QPageSetupDialog( myPrinter) uses the default printer instead of myPrinter for the initial drop down menu selections.

      when QPageSetupDialog is expressly provided a specific non-default myPrinter, then the setup dialog should use myPrinter and not the default printer for the initial settings.

      QPrinter *myPrinter = new QPrinter(
                  QPrinterInfo::printerInfo(QString("Brother_PT_9500PC"))
                  );
      QPageSetupDialog pageSetupDialog( myPrinter);
      if( pageSetupDialog.exec() == QDialog::Accepted )
      {
          // ...
      }
      

      Attachments

        Issue Links

          Activity

            People

              johnlayt John Layt
              --marc Marc Campbell
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: