VS + QT get .ui corresponding ui_XXXX.h header file problem
(1) In the \ 5.11.2 \ mingw53_32 the Qt5.11.2 \ bin directory corresponding uic.exe .ui used to generate corresponding header file ui_XXXX.h, so cmd into the bin directory, run uic XXXX.ui ui_XXXX.h
can be generated.
(2) at VS, right .ui File -> "Compile", will generate the corresponding ui_XXXX.h header file, but the default directory is ui_XXX.h output $(IntDir)\uic\%(RelativeDir)
in the Debug project where \ uic directory, but the actual need to be modified in the custom GeneratedFiles directory, right .ui file -> "configuration properties" -> "uic", modify the output directory GeneratedFiles\
.
reference:
"Can not compile QT file UI_XXXX.h UI project with VS2017" solution