thanks for the link jacek. It makes things a little more clear but still does not explain me why I could compile this code with qt3 and with qt4 i couldn't?
i've looked in qapplication.h and there is no forward declaration.