Quote Originally Posted by tentakel View Post
hello faldżip ,

i am on a different system without the previously installed qt creator. i have only installed vc2008 and the qt libarries for vc2008.



by the way:
some notes to 3a:
Warning: No Resources in 'icons.qrc'

i added all the files which are created by the qt creator to the qrc file.
<RCC>
<qresource prefix="/">
<file>ui_testcustom.h</file>
<file>icons.qrc</file>
<file>Makefile</file>
<file>Makefile.Debug</file>
<file>Makefile.Release</file>
<file>testcustom.cpp</file>
<file>testcustom.h</file>
<file>testcustom.pri</file>
<file>TestCustom.pro</file>
<file>TestCustom.pro.user</file>
<file>testcustom.ui</file>
<file>testcustomplugin.cpp</file>
<file>testcustomplugin.h</file>
</qresource>
</RCC>
delete this icons.qrc file. As I can see you don't need this at all.

and executed in cmd: qmake -tp vc
this is now succesful and the VC++ Project File is generated.

after opening the vc++ project file, the vc++ project opens in VC2008,
but,...............the project in vc++ lists additionally the following files moc_testcustom.cpp, moc_testcustompluginand.cpp qrc_icons.cpp.
these files are not generated by qmake -tp vc.

i deleted all the moc_XXX and qrc_XXX files in the project.
compiling the vc++ project fails with "fatal error C1083: Datei (Include) kann nicht geöffnet werden: (--> could not open include file) "QDesignerCustomWidgetInterface": No such file or directory"
perhaps the qt library is not part of VC2008.

so, any ideas????
Do you have "CONFIG += designer plugin" in your .pro file (read Custom Widget Plugin Example in Qt Assistant)? Do you have QTDIR envirnoment variable set? Check if Qt include paths and libs are set in Visual Studio project properties.

moc_xxx files are generated by MOC - meta-object compiler - tool which is a part of Qt.

But surely your previous error from 3b. was cause by wrong mkspec. Remove all files which are not needed (left only .h .cpp .pro) and rerun qmake. If the error still exists delete Makefiles and type:
Qt Code:
  1. qmake -spec win32-msvc2008
To copy to clipboard, switch view to plain text mode 
And I've already told you to read about spec (QMAKESPEC) in Qt Assistant. If you would read it then you would know that this:
.../qt/mkspecs/win32-g++/...
is used with MinGW under Windows.