[PyQt] QSvgRenderer().render() blocking main thread
Wilbert Berendsen
wb at xs4all.nl
Fri May 20 12:55:48 BST 2016
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.
Thanks,
Wilbert
(Frescobaldi author and core developer)
--
Wilbert Berendsen, musician
‣ mail: info at wilbertberendsen.nl
‣ web: www.wilbertberendsen.nl
More information about the PyQt
mailing list