(really thanks for your help, i'm really a greehorn )
I've noticed that I can't tell you what causes that error, because you have to be a little bit more elaborate. How does the line looks like which throws that error? I guess you should write "#include <QMainWindow>".
Bookmarks