VS_Qt common errors (continually updated)

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.hcan 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


Guess you like

Origin www.cnblogs.com/linuxAndMcu/p/12365978.html