QPainter on QPrinter kinda slow
-
Hi
Im using qt 6.8 under windows with mingwthis line takes up to a minute:
QPainter painter(Printer_F05);Printer_F05 is initilize long before (when the application is started) as
Printer_F05 = new QPrinter(QPrinter::PrinterMode::HighResolution);is there something to do to optimize?
thanks guys -
Hi,
That seems indeed a bit long.
What kind of printer are you connecting to ? -
AFAIK, the printing engine is initialized when you create the printer so I would say yes.
Windows 11 by any chances ?
-
AFAIK, the printing engine is initialized when you create the printer so I would say yes.
Windows 11 by any chances ?
@SGaist
its a vm on a server, I dont have access right now but pretty sure its windows 11the printing engine is initialized on the printer creation or painter creation? because the printer gets created at the application boot
and is valid as long the app is running (that might not be optimal, please comment on this)and when I get the print command I create a painter with the already initialized printer and thats where it takes 1 minutes
-
I've read somewhere not long ago (but I can't find that reference anymore...) that Win11 changed some of the handling for printing and it might affect Qt.