Qt World Summit: Submit your Presentation

QPrintPreviewDialog not responding to page or printer settings on Mac OS X (10.10.3 Yosemite)

  • Hello,

    I am using a remote printer on Mac OS X and QPrintPreviewDialog and QPrintPreviewWidget do not reflect any changes when I change the page settings or the printer settings. The QPageSetupDialog and the QPrintDialog don't reflect any changes to my QPrinter either.

    This all works fine on Windows to which the printer is connected directly. So is this a Qt bug or limitation regarding remote printers on the Mac?
    Is there something I need to do to make Qt work with remote printers apart from using QT += printsupport in my Pro file.

    Has anyone else seen this issue? I am using Qt 5.4.0.

    Any help will be very much appreciated.
    Thank you.

  • Lifetime Qt Champion


    What kind of remote printer is it ? How did you configure it ?

  • @SGaist Hello Thanks for your interest. The printer is an Epson EP-775A inkjet printer connected to a Windows desktop machine via usb. The Mac is connected to the Windows machine via a LAN. The printer is installed on the Mac as a shared network printer and it works fine as the default printer on the Mac.

    I have tried various things with the code on both machines and found they respond in different ways. For instance on the Mac I can get the QPagePreviewWidget to respond to size changes but it will not respond to orientation changes when I use the QPageSetupDialog. On the Windows machine I get the orientation changes but not all of the paper sizes will be reflected by the preview widget.

    I am guessing it just issues between the printer drivers and Qt.

  • Lifetime Qt Champion

    Then you should take a look at the bug report system to see if it something known, if not then please consider opening a new report providing as much details as you can (including the findings you shared here, the driver used on OS X etc.)

  • @SGaist Thanks, I will take a look at that.