I was wondering how can I use global variables in my Qt program? ... I guess you are not trying to mix 'C' kind of coding using C++ compiler !
www.qtcentre.org