Ok, I know now why.The compilation error is generated because in order to embed an image the Qt3 uic is used (I don't know why)
Qt4 has resource system.
From the docs:
The Qt resource system is a platform-independent mechanism for storing binary files in the application's executable. This is useful if your application always needs a certain set of files (icons, translation files, etc.) and you don't want to run the risk of losing the files.
The resource system is based on tight cooperation between qmake, rcc (Qt's resource compiler), and QFile. It obsoletes Qt 3's qembed tool and the image collection mechanism.
Bookmarks