It does create it, but you should give the path to where qmake creates the file (now the generated files are not in the same folder with the files you create),
Solution 1: replace this line:
#include "main.moc"
#include "main.moc"
To copy to clipboard, switch view to plain text mode
with (you can check in the examples folder and see where the file is located):
#include "tmp\moc\release_shared\main.moc"
#include "tmp\moc\release_shared\main.moc"
To copy to clipboard, switch view to plain text mode
And make sure that you link the 4.7 example with 4.7 library (if you have two versions you can select witch one to use)
Or you can split the code from main.cpp and use an Pixmap.h and Pixmap.cpp for that class (and you won't have to include the .moc file)
Bookmarks