[PyQt] Copying QStandardItem

Phil Thompson phil at riverbankcomputing.com
Tue Aug 5 16:10:39 BST 2008

On Tue, 5 Aug 2008 17:00:37 +0200, "Arve Knudsen" <arve.knudsen at gmail.com>
> On Tue, Aug 5, 2008 at 4:42 PM, Phil Thompson
> <phil at riverbankcomputing.com> wrote:
>> On Tue, 5 Aug 2008 16:15:49 +0200, "Arve Knudsen"
> <arve.knudsen at gmail.com>
>> wrote:
>>> Is it problematic to copy QStandardItem? When I use copy.copy,
>>> accessing the resulting object results in a RuntimeError with the
>>> message 'underlying C/C++ object has been deleted'.
>> QStandardItem has no pickle support and no __copy__ implementation.
> Is it possible to raise an error to indicate this, instead of the
> current indirect error?

I'll add it to the TODO list to have default a __reduce__ implementation
that just raises an exception.


More information about the PyQt mailing list