hi
this is vc++ code
AFX_MANAGE_STATE(AfxGetStaticModuleState())
what is similar in QT4