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

qprintdialog doesn't update printer settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.9.4, 5.10.1
    • GUI: Printing
    • None

    Description

      I am trying to debug a problem of a c++ application based on qt5 (qpdfview) where the printing options are not taken in consideration. Eventually I have discovered that the problem is general and I can reproduce it using the following simple python script:

      pyver=5
      
      if pyver == 4 :
       from PyQt4.QtCore import *
       from PyQt4.QtGui import *
      else :
       from PyQt5.Qt import *
       from PyQt5.QtGui import *
      app = QApplication([])
      w=QPrintDialog()
      w.show()
      if w.exec_() :
       print w.printer().printerName()
       print "source is %d" % w.printer().paperSource()
       print "size is %d" % w.printer().paperSize()
       print "orientation is %d" % w.printer().orientation()
      else :
       print "cancelled"
      
      

      I can immediately verify that the printer options are not changed when I change them in the printer options dialog (started from the Properties button). The same script running against qt4 works as expected.

      I am working on a Linux platform

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johnlayt John Layt
            efferre79 Fabio Rossi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes