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

QPrinterInfo -> QPrinter -> QPageSetupDialog get page sizes from default printer only

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • 4.8.x
    • 4.6.2
    • GUI: Printing
    • None

    Description

      Setting up different printers on system i can get page sizes only from the default one in the case of using a code like the following (from kipi printwizard):
      QList<QPrinterInfo>::iterator it;
      //m_printerList = QPrinterInfo::availablePrinters ();

      for ( it = d->m_printerList.begin();
      it != d->m_printerList.end(); ++it )
      {
      if (it->printerName () == text)

      { kDebug() << "Choosen printer: " << it->printerName (); if (d->m_printer) delete d->m_printer; d->m_printer = new QPrinter(*it); }

      }
      ...
      void Wizard::pagesetupclicked()
      {
      if (d->m_pDlg)
      delete d->m_pDlg;
      d->m_pDlg = new QPageSetupDialog (d->m_printer, this);
      int ret = d->m_pDlg->exec();
      if ( ret == QDialog::Accepted )

      { pagesetupdialogexit(); }

      }

      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
              anaselli Angelo Naselli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes