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

Can't close a QPrintDialog from code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 4.8.5, 5.1.0
    • GUI: Printing
    • None
    • Windows 7 64-bit, OS X 10.8.4
    • macOS

      QPrintDialog is documented as supporting close() or done(int) methods, but neither have any effect when called.
      The native dialog produced on Windows and Mac do not respond to these calls, and the QPrintDialog* is useless.

      A sample application is attached which demonstrates that calling done() after QPrintDialog::open
      does not close the dialog as documented. There does not appear to be any way to close the dialog
      once it has been displayed without the user clicking Cancel or Print buttons.

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

            srutledg Shawn Rutledge
            bargonaut Brad Sandman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes