We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ead7f9 commit ffe1032Copy full SHA for ffe1032
qwt/plot_renderer.py
@@ -249,7 +249,11 @@ def renderDocument(
249
printer.setPrinterName("")
250
else:
251
printer.setOutputFormat(QPrinter.PostScriptFormat)
252
- printer.setColorMode(QPrinter.Color)
+ try:
253
+ printer.setColorMode(QPrinter.Color)
254
+ except AttributeError:
255
+ # PyQt6 on Linux
256
+ pass
257
printer.setFullPage(True)
258
printer.setPageSize(QPageSize(sizeMM, QPageSize.Millimeter))
259
printer.setDocName(title)
0 commit comments