mreiferson/py-wkhtmltox — Issue #4: Error QPainter o.O
Author: viniciuscainelli
Created: 2012-02-05 16:06:24+00:00
State: open

Hi,

I have an error:

QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::translate: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setFont: Painter not active
Segmentation fault

when call the code:

import wkhtmltox

img = wkhtmltox.Image()
img.set_global_setting('out', 'test.jpg')
img.set_global_setting('in', 'http://www.uol.com.br')
img.convert()

How to fix it?

Thanks.