BIC Problem with KPlayObjectFactory resolved
Neil Stevens
neil at qualityassistant.com
Fri Aug 30 22:11:09 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday August 29, 2002 03:34, Carsten Pfeiffer wrote:
> On Thursday 29 August 2002 22:07, Neil Stevens wrote:
> > Can the Creator be made a "singleton," storing its own pointer? That
> > should allow the Factory to use a Creator without problems.
>
> You could also use the "QPtrDict hack" (I think it's explained in the
> BIC howto on developer.kde.org). Basically, you create a static QPtrDict
> where you can add an additional object (i.e. a structure like the
> Private class), associated with an instance of the class you try to
> extend.
Just for reference, this workaround is discussed and demonstrated with
sample code on developer.kde.org:
http://developer.kde.org/documentation/library/kdeqt/kde3arch/devel-binarycompatibility.html
- --
Neil Stevens - neil at qualityassistant.com
"I always cheer up immensely if an attack is particularly wounding
because I think, well, if they attack one personally, it means they
have not a single political argument left." - Margaret Thatcher
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9b99tf7mnligQOmERAknIAJ4spKfbGBW5yTgX1AYaQStQX1u+hgCfTvlW
4N7NmJ1Ep4V/pFXAoWTVH5Y=
=QQ0m
-----END PGP SIGNATURE-----
More information about the kde-multimedia
mailing list