0

When I press "Clean Solution" in Visual Studio 2008 for a Qt project all moc and ui header files from generatedfiles folder are cleaned.
I have one more my own generated *.h file in this folder, how to delete it too?
Where moc and ui headers file are deleted? I can't find any setting, with a option to add custom file except "Extension to Delete on Clean". But there is nothing about "generatedfiles".

And Project->Properties->Configuration Properties->General->Extensions to Delete on Clean can't be used in this case, because it ignores paths and recognize only extensions or file names.

4

1 に答える 1

2

The Visual Studio Qt Plugin is designed to put all files generated by uic, rcc and moc into a GeneratedFiles directory. Just like you stated, if you clean out the project, all of these generated files are also removed.

The files generated will be: ui_*.h for all form files created with QtDesigner qrc_*.cpp for all resource files created with QtResource moc_*.h for all header files that contain Q_OBJECT *.moc for all .cpp files that contain Q_OBJECT

The plugin is not designed to clean out any other files that you might put there yourself because it's not intelligent enough to know what your purpose with them is.

I would suggest that you put all your own header files somewhere else and delete them manually whenever you need to.

于 2013-09-21T08:18:00.243 に答える