[PyQt] Copying QStandardItem

Arve Knudsen arve.knudsen at gmail.com
Tue Aug 5 16:00:37 BST 2008


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?

Arve


More information about the PyQt mailing list