[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QSvgRenderer().render() blocking main thread
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2016-05-20 13:13:24
Message-ID: 5B136090-B61A-4353-96B8-7192E0657C15 () riverbankcomputing ! com
[Download RAW message or body]
On 20 May 2016, at 12:55 pm, Wilbert Berendsen <wb@xs4all.nl> wrote:
>
> Dear friends,
>
> I am QSvgRenderer to render a SVG file to a QImage in a background
> thread. All code in the background thread works properly, but during
> the call to QSvgRenderer::render(...) the main (Gui) thread blocks.
>
> It seems that this is due to the GIL not being released during render()?
>
> Is there a way to get around this? (without requiring the user to
> patch+recompile qsvgrenderer.sip)
>
> The render() method takes a noticable time, esp. on larger resolutions.
>
> It would be very nice to be able to render in a background thread.
I've added the annotations. However there isn't a workaround.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic