QPrinter and multithreading
-
Hello to everyone.
In my application I wish to print some data in the second thread to avoid a blocking of my application. This printing process can take about one minute. In my situation I found one intersting thing. If I print to "pdf" - file all data is printed, however when I use real printer then all pages are white, clear.
And the second moment I discovered. While this data is printed in the second thread some text signatures are flickering in my view. OS: Windows 7, Qt: 4.8.3. In the internet I did not find solution.
Thank for attention. -
Maybe you encountered a bug. Can you try newer version of Qt (5.3.1 or 4.8.6)?
-
Yes, I was wrong about version. My company uses 4.8.6, but unfortunately I'm not sure about Qt updation in the near future
-
Did you solve it? If not, can you make simple sample code to illustrate the issue? I will run it and maybe I could find solution.
-
Thank for help. Next week I'try to show code.
-
I see this problem was discussed here. http://qt-project.org/forums/viewthread/29549
-
I tried to run ChrisW67's code with success on Qt 5.2.1. Soon I will run it on 4.8.6.