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

QPrintDialog doesnt work with non-naitive printers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.0
    • GUI: Printing
    • None
    • Windows 10 Pro 64bit.

      QtCreator 4.5.0

      Qt 5.10.0

    Description

      QPrintDialog compiled with MSVC2015 64bit  doesnt work with non-naitive printers (in my case it's HP Designjet 510 Plotter), while same code compiled with with MSVC2015 32bit works with both types - non-native and usual printers.

      The thing is that in case of 64 bit in the folowing code the function exec() always returns 0, even if print button was pressed.

      QPrinter* printer = new QPrinter(QPrinter::HighResolution);
      QPrintDialog printDialog(printer, this); 
      if (printDialog.exec()) 
      {
           // doesn't work with non-naitive printers; 
      }

      Also I tried to print usual code page in QtCreator 4.5.0 (based on Qt 5.10.0, MSVC 2015, 64 bit)  it also doesnt work. While in QtCreator 4.5.0 (based on Qt 5.10.0, MSVC 2015, 32 bit) - everything is fine. 

      Attachments

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

        Activity

          People

            johnlayt John Layt
            nick_parker Nikolai Mitrofanov
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes