[Interest] QPrintPreviewWidget

Dan Allen dan at jerber.co.uk
Sat Apr 1 09:41:57 CEST 2017


Hi,

Could anyone tell me if it's possible to paint into a 
QPrintPreviewWidget in another thread, and if so, how?

I have created a class to perform printing and this runs in another 
thread.  When used for printing it works fine.  However when used for 
the print preview, nothing is shown unless I force the signal to either 
Qt::DirectConnection (i.e. use the GUI thread) or Qt 
::BlockingQueuedConnection (i.e. block the GUI thread).

Thanks,

Dan Allen.





More information about the Interest mailing list