[Interest] QPrintPreviewWidget

Konstantin Tokarev annulen at yandex.ru
Sat Apr 1 14:48:53 CEST 2017



01.04.2017, 15:44, "william.crocker at analog.com" <william.crocker at analog.com>:
> On 04/01/2017 03:41 AM, Dan Allen wrote:
>>  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).
>
> Dan:
>
> Conventional wisdom, if not the rule of law, states that all GUI activity
> should be done from the main thread.

Except OpenGL rendering that may be done from other thread

> You may just be experiencing
> the Qt library enforcing this rule.
>
> Bill
>
>>  Thanks,
>>
>>  Dan Allen.
>>
>>  _______________________________________________
>>  Interest mailing list
>>  Interest at qt-project.org
>>  http://lists.qt-project.org/mailman/listinfo/interest
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Regards,
Konstantin



More information about the Interest mailing list