Can Q_GLOBAL_STATIC replace KStaticDelete ?

Thiago Macieira thiago at
Thu Jan 18 22:06:48 GMT 2007

Matthias Kretz wrote:
>Problem to solve: KApplication derives from KInstance. So if
> KApplication is destructed before the global statics how could
> KInstance keep itself alive long enough? I guess KInstance then has to
> be a member of KApplication. What implications does that have on
> existing code?

Just like QDBusConnection: the class itself is just a value wrapper.

You don't keep pointers to it. You keep objects.

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list