[PyQt] Copying QStandardItem
Arve Knudsen
arve.knudsen at gmail.com
Tue Aug 5 18:31:26 BST 2008
Sounds good, cheers.
Arve
On Tue, Aug 5, 2008 at 5:10 PM, Phil Thompson
<phil at riverbankcomputing.com> wrote:
> On Tue, 5 Aug 2008 17:00:37 +0200, "Arve Knudsen" <arve.knudsen at gmail.com>
> wrote:
>> 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.
>
> Phil
>
>
More information about the PyQt
mailing list