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

List:       pykde
Subject:    Re: [PyQt] =?utf-8?q?causes_self_to_be_owned_by_Qt_instead_of_PyQt_?=
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2015-03-30 10:32:44
Message-ID: ce24c6de377e541a2e8bda240439fcac () riverbankcomputing ! com
[Download RAW message or body]

On 30/03/2015 11:15 am, redstone-cold wrote:
> In the QObject.__init__(self, Parent=None) documentation it states:
> 
> The parent argument, if not None, causes self to be owned by Qt instead 
> of PyQt.
> 
> What does it mean to be owned by Qt instead of PyQt? Does this have
> effects on behavior that I should be aware of when developing a PyQt
> application?

It means that Qt will call the dtor of the C++ instance when necessary 
and it may still exist even if the Python object that wraps it is 
garbage collected. Generally you don't need to worry about it.

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