youri at pluxcustoms.nl
Wed Mar 20 02:33:57 PDT 2013
Thanks a lot that did the trick. However I'd recommend changing the
example on: http://qt-project.org/doc/qt-4.8/qwebpage.html#details to
actually use the fill() method as well. This really put me on the
wrong path and I can imagine it'll do the same with other people
trying to accomplish a similar task. Like this application:
Once more: thank you for your assistance!
2013/3/19 Jocelyn Turcotte <jocelyn.turcotte at digia.com>:
> On Tue, Mar 19, 2013 at 04:40:16PM +0100, Youri Westerman wrote:
>> Hi Jocelyn,
>> So with following snippet:
>> QImage im(page->viewportSize(), QImage::Format_ARGB32);
>> QPainter painter(&im);
>> It would be possible to end up with an uninitialized QImage object? It
>> seems to me that I should get a segfault or something when I pass it
>> to the render method. Furthermore It is possible to call byteCount()
>> on it as well returning the correct number of bytes. I'll try calling
>> fill() on the object.
> The pointer to the buffer is initialized, it's the buffer's content itself that isn't initialized.
> See http://qt-project.org/doc/qt-4.8/qimage.html#QImage-2
Mediapark - Studio 21
e: youri at pluxbox.nl
More information about the webkit-qt