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 _______________________________________________ webkit-qt mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-qt
