On Tue, 4 Nov 2008 07:28:44 +0100, Gerard Vermeulen <[EMAIL PROTECTED]>
wrote:
> On Sat, 01 Nov 2008 17:29:59 +0000
> Phil Thompson <[EMAIL PROTECTED]> wrote:
> 
>> There will be new releases of PyQt, SIP and QScintilla in the next
>> few days based on current snapshots.
>> 
>> Let me know if there is anything you are expecting that doesn't seem
>> to be there.
>> 
>> Phil
> 
> The QImage constructor steals a reference to the uchar *data argument
> instead of increasing the reference count of the input string (tested)
> or buffer object (untested, but looked into siplib.c).
> It is the (not very well documented) responsibility of the Python
> programmer to keep a reference to that argument for the lifetime
> of the QImage instance to prevent the use of invalid image data.
> 
> Bug or quirk?

Feature - it's the same issue that setModel() has.

I have a plan, but it needs a SIP change so it should be in v4.8 (not
v4.7.8).

Phil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to