[PyQt] Subclassing a Qt non-QObject class

Phil Thompson phil at riverbankcomputing.com
Fri May 10 16:38:36 BST 2019


On 10/05/2019 10:53, Wallboy wrote:
> Interesting. I wish I remembered all the details of the C++ rules about 
> when
> objects are copied when I worked with the language some ~10 years ago.
> 
> I looked at the source for the QNetworkCookieJar on the methods where
> cookies get added, and did not see where a copy of the QNetworkCookie 
> is
> happening. Is there an implicit copy happening? Isn't passing by const
> reference supposed to avoid copying?

An assignment is a copy.

Phil


More information about the PyQt mailing list