Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.4
-
None
Description
How to reproduce
- copy qtbase\examples\widgets\painting somewhere
- run qmake -tp vc -r in the copied directory
- run devenv painting.sln /build Release or load gradients\gradients.vcxproj in VS
We get the following errors:
D:\playground\painting\affine\affine.vcxproj : error : Cannot load project with duplicated project items: xform.cpp is included as 'ClCompile' and as 'None' item types. D:\playground\painting\composition\composition.vcxproj : error : Cannot load project with duplicated project items: composition.cpp is included as 'ClCompile' and as 'None' item types. D:\playground\painting\deform\deform.vcxproj : error : Cannot load project with duplicated project items: pathdeform.cpp is included as 'ClCompile' and as 'None' item types. D:\playground\painting\gradients\gradients.vcxproj : error : Cannot load project with duplicated project items: gradients.cpp is included as 'ClCompile' and as 'None' item types. D:\playground\painting\pathstroke\pathstroke.vcxproj : error : Cannot load project with duplicated project items: pathstroke.cpp is included as 'ClCompile' and as 'None' item types.
The reason being that e.g. gradients.cpp is a compiled C++ source file and also in gradients.qrc resulting in having the file twice in the project under different item types.