[PyKDE] Top-level windows and ownership
Boudewijn Rempt
boud at valdyas.org
Sun Nov 4 22:25:19 GMT 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 04 November 2001 20:52, Andreas Gerstlauer wrote:
>
> Any ideas anybody? Is there any way I can explicitly transfer ownership
> to the C++ side?
>
As far as I understand this isn't possible. Either Python has a reference to your object,
or a Qt C++ object, or both, but you can't have an object hanging in the air. I'd swallow
the bitter pill, and do the book-keeping yourself in Python, and connect the closed()
signal to your window-manager. I think that would be nicer than adding something that
manages C++ ownership that isn't present in Qt itself.
- --
Boudewijn Rempt | http://www.valdyas.org
public key at: certserver.pgp.com or pki.surfnet.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE75bHSN8fj6DnPxOgRAmbLAJ44pBsKY1YgCqNCCu6sxtMfzP+8GACdFxtV
8GEVsxiNnL2lOuLYfxvd4fA=
=Ab8B
-----END PGP SIGNATURE-----
More information about the PyQt
mailing list