Quote Originally Posted by jpujolf View Post
I've made this trick :

Qt Code:
  1. // GlobalClass.h
  2.  
  3. class GlobalClass
  4. {
  5. static GlobalClass * m_Instance;
  6. public :
  7. GlobalClass();
  8. ~GlobalClass();
  9.  
  10. // here stuff, if needed...
  11. };
To copy to clipboard, switch view to plain text mode 
This is very similar to singleton pattern and something used by Qt (apart from the fact that it's probably not thread safe) : Q_GLOBAL_STATIC(TYPE, NAME) macro defined in qtglobal.h

However it does not solve my problem because it won't be called BEFORE ALL STATIC CONSTRUCTORS of the program and attached libraries...