[SOLVED] Spreadsheet example crashes on QPrinter statement
-
Hello
I am trying to run the Spreadsheet example for demonstration of the QPrinter class. I am using Qt5.5 Mingw on Windows 10 computer.
This example runs properly. However, when I press the Print menu item, the application hangs. I have to force close the application.
This same example works well on Linux but having problem running it on Windows.
Tried searching for a solution but unable to find a relevant one.
I am doing something wrong or do I need to install something more for this QPrinter to work?
Regards
Kaka
-
Hi and welcome to devnet,
You might have found a problem with Windows 10 (new platform) You should check the bug report system to see if it's something known
-
Thanks.
I will look at that. I feel this could be a bug. I tried running the program on qt4.8.6 assuming that might be a problem of Qt5.5, but still the same thing happens.
I will check if it is a known bug.
-
I installed the same environment on another computer running windows 10... and the example worked. The QPrinter did not give any error.
What could be wrong on my Windows 10 PC that this example does not run and hangs at QPrinter declaration. Any Ideas?
-
Hi
Do you have any stall printers in list. Like old one not used anymore.
or a network printer that is not around currently. -
Yes, I have network printer installed that is not around currently. There are no old printers installed.
-
@TheCrowKaka
Ok. I have seen cases where it made application lags when trying to enum the capabilities and
it seems to hang for some time out to happen.
But in my case it also affected other non qt programs when entering their print setup.
So did u try with others programs to see if they have lag issues? -
Oh
Thanks MrJJ for your tip. Indeed i noticed that none of the applications were entering their print setup.
Then on searching I came across a simillar problem reported here.
[http://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/windows-10-working-fine-for-2-weeks-suddenly-print/0aa3af09-81fe-46b2-8267-ac594e986c8e?tab=question&status=AllReplies#tabs](link url)And on removing the Nitro PDF program using the tool from their website, the QPrinter started working.
Thanks for your help.