[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] copy.deepcopy and PyQt?
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2009-04-30 16:35:51
Message-ID: 51d316cb1fde1ed5466c16a5e8eedf09 () localhost
[Download RAW message or body]

On Thu, 30 Apr 2009 18:11:23 +0200, Lukas Hetzenecker <LuHe@gmx.at> wrote:
> Hello,
> 
> i noticed a problem when I tried the attatched script:
> If a object is derived from QObject and i make a deepcopy of this object,
> all 
> member variables get lost.
> If I derive from object it works perfectly.
> 
> Please look at the attatched example. It produces the following output:
> Hello World from MyObject!
> Hello World from MyQObject!
> Hello World from MyObject!
> Traceback (most recent call last):
>   File "test.py", line 31, in <module>
>     cq.print_()
>   File "test.py", line 10, in print_
>     print self.string
> AttributeError: string

Deep copying of QObjects isn't supported.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic