Can Q_GLOBAL_STATIC replace KStaticDelete ?

Matthias Kretz kretz at
Wed Jan 17 11:51:54 GMT 2007


I'm all for moving to Q_GLOBAL_STATIC where it doesn't break things. I.e. it 
will break if the dtor (or code called by the dtor) needs other objects like 
KInstance or QCoreApplication.
For example a dirty KConfig object will need a KInstance object.

For those global statics we need to add a way to get destructed before 
~KInstance is called.

I'm working on a K_GLOBAL_STATIC macro right now...

On Wednesday 17 January 2007 11:17, Olivier Goffart wrote:
> So finally, what is the consensus ?
> Any objection to mark KStaticDeleter as deprecated, and start moving the
> code to Q_GLOBAL_STATIC ?
> Also, I still have one issue to use undocumented Qt macro.
> If Trolltech doesn't want to document them, I think we should at least
> document them ourself (on

Matthias Kretz (Germany)                            <><
MatthiasKretz at, kretz at,
Matthias.Kretz at
-------------- 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