Hi Jocelyn, 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: https://github.com/h4ck3rm1k3/webkitimageqt Once more: thank you for your assistance!
Kind regards, Youri 2013/3/19 Jocelyn Turcotte <jocelyn.turco...@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 -- Youri Westerman Developer Pluxbox Sumatralaan 45 Mediapark - Studio 21 t: 035-7606060 e: yo...@pluxbox.nl w: http://www.pluxbox.nl Pluxbox _______________________________________________ webkit-qt mailing list webkit-qt@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-qt