Details
-
Bug
-
Resolution: Done
-
P2: Important
-
1.2.4
-
Windows 7
Visual Studio 2013
Qt5.3.2
Qt5Addin 1.2.4
-
af5dcc0ac037b902c6ce87fca7f71bdaeab96e41
Description
The custom build to generate the moc for the header is not set when the header is added with Visual Studio wizard ( "Add -> New Item..." )
To repodruce:
- Create a Qt project with Visual Studio 2013
- Add -> New Item...
- Choose Header file (.h)
- MyFile.h
#ifndef MYFILE_H #define MYFILE_H #include <QObject> class MyFile : public QObject { Q_OBJECT public: MyFile(QObject *parent); ~MyFile(); private: }; #endif // MYFILE_H
- Build solution
Result:
1>------ Build started: Project: Test, Configuration: Release x64 ------
1> moc_MyFile.cpp
1>c1xx : fatal error C1083: Cannot open source file: 'Moc\moc_MyFile.cpp': No such file or directory
Extra information:
Removing and then adding the Q_OBJECT does not generate the moc but it is working fine if I add the file with "Add -> Existing item..." So as long as a file is added with "Add -> New item..." there is no way to have the moc file
Attachments
Issue Links
- is duplicated by
-
QTVSADDINBUG-462 Qt5 VS Tools is no longer creating moc build steps
- Closed