PDA

View Full Version : Problem with QPrinter



dk
12th January 2012, 15:58
Hi there,

since two days i have a strange problem with the QPrinter. i can not declare any new instances of QPrinter. as soon as i declare a QPrinter object, the software doesn't just crash, it creates a complete deadlock, and i have to restart my computer. Everything stops on the creation of the object in qprinterengine_win.cpp :

hdc = CreateDCA(program.toLatin1(), name.toLatin1(), 0, devModeA());

the funny thing is, that everything used to work perfectly ... creating Printer objects, printing to pdf's.
because i am writing into pdf, i thought the microsoft xps document writer might be corrupted, so i reinstalled the xps printer ... but it didn't solve my problem.
i'm using Qt 4.5, Visual Studio 2010 on windows 7.

has anyone ever has a similar problem?

thanks for your help