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

QPrintDialog error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.9.3
    • GUI: Printing
    • None
    • Windows 10

      Microsoft Visual C++ Compiler 15.0 (amd64)

      Qt 5.9.3

      QtCreator 4.5.0

    Description

       

      See the given code.

      QPrinter printer;
      printer.setOutputFormat(QPrinter::NativeFormat);
      QPrintDialog printDialog(&printer, this);
      if (printDialog.exec()){
      
      }

      When I execute this code, the dialog doesn't open and the next message is shown on "application output":

       

      QPrintDialog: Cannot be used on non-native printers
      
      QPrintDialog: Cannot be used on non-native printers

       

      The QPainter is set to native format, so the error message has no sense.

      I have tried this also using Qt5.3.0 and Qt5.3.2 and the dialog is created properly without any error log message.

       

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            xavisolesoft Xavier Solé
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes