Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, August 2007
Q_GLOBAL_STATIC safe to use?


Message 1 in thread

HI, I just discovered to Q_GLOBAL_STATIC macro in one of the TT 
examples. Looks interesting. Unfortunately the assistant contains 
absolutely no documentation about it. Does this mean 'keep off, 
internal use only'?

Guido


--
 [ signature omitted ] 

Message 2 in thread

Guido Seifert wrote:
> HI, I just discovered to Q_GLOBAL_STATIC macro in one of the TT 
> examples. Looks interesting. Unfortunately the assistant contains 
> absolutely no documentation about it. Does this mean 'keep off, 
> internal use only'?
> 

Yes, its internal. If you look into the src/corelib/global/qglobal.cpp in the 
4.3 snapshots you will notice that it has gained some documentation and has been 
marked as internal.

Girish

--
 [ signature omitted ] 

Message 3 in thread

Guido Seifert wrote:

> HI, I just discovered to Q_GLOBAL_STATIC macro in one of the TT
> examples. Looks interesting. Unfortunately the assistant contains
> absolutely no documentation about it. Does this mean 'keep off,
> internal use only'?

Like various "internal" things in Qt, there's nothing stopping you
from using it, but we don't guarantee that it will always be there
or that it won't be changed behind your back.

That's why the documentation for it (see qglobal.cpp) is marked as
internal.

David
-- 
 [ signature omitted ]