Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.9.3
-
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.