Quote Originally Posted by malootki View Post
Thank you very much. It works. Question is : Why QT creators didn`t include it like you?
Because it should work without specification of the path to that file, on linux it works, on windows it worked when the generated files where in the project folder, i guess that the mingw compiler search for that file only in project folder and can't find it because now the generated files (and .exe ...) are in a different folder. I didn't use this include very often, that is why i recommended you to split the example code in more files (a .h and a .cpp for that class) and in that case you don't need to include the .moc file

PS:sorry for double post