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

QPageSetupDialog does not initially select provided QPrinter

XMLWordPrintable

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

      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 )
      {
          // ...
      }
      

        1. QPageSetupDialogScreenCapture.tiff
          94 kB
          Marc Campbell
        2. QPageSetupDialogTest.zip
          3 kB
          Marc Campbell
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes