Originally Posted by codebehind why I could compile this code with qt3 and with qt4 i couldn't? Because Qt4 sources are organised differently. Now the compiler must read QDesktopWidget code only when you really use it. Originally Posted by codebehind i've looked in qapplication.h and there is no forward declaration. Check again. Look near QT_MODULE macro.
Check again. Look near QT_MODULE macro. sorry. i was thinking about qt3 - qapplication.h
Originally Posted by codebehind i was thinking about qt3 - qapplication.h In that case everything is OK. That's the difference between Qt3 and Qt4 --- Qt4 uses forward declaration.
Forum Rules
Bookmarks