Qt custom upgrade, header files could not find the problem

problem:

  A custom control (Display_Battery), using the UI design patterns, will be promoted to QWidget controls custom controls, suggesting that the header files could not find the control (display_battery.h)

/home/huge/qtpro/Navigator_New/build-Navigator_New-ARM-Debug/ui_display_navigator.h:26: 错误:display_battery.h: No such file or directory

solve:

  ① Click the error, enter the target file (display_battery.h), the header file into a directory of your project

 

 

改为:# include "Interface_Display/Display_Battery/display_battery.h"

Is changed under the custom control project directory address

Defects: each modification ui file, you must first change the file reference

  ② improve the QWidget canceled, and re-edit, written after the class name children, manually change the class address

 

 

Guess you like

Origin www.cnblogs.com/shuoguoleilei/p/11713245.html