当前位置:网站首页>VS QT - ui does not display newly added members (controls) || code is silent
VS QT - ui does not display newly added members (controls) || code is silent
2022-07-31 03:11:00 【Agen =_=】
Scenario 1: Create a new project, after editing in the ui, the newly added controls do not display code hints.

Scenario 2: Member ui reports an error Incomplete type is not allowed

Because I just started learning, it took two or three days to find a solution.
Online method: Recompile the ui file + rescan the solution (but I still can't solve it here)
Root cause: The header file of xxx.ui (ie ui_xxx.h) is missing. The header file is generated under debug/uic by default, so it is not added to the project by default, so it cannot be recognized.
There is no ui_xxx.h header file by default

Under the ui_xxx.h file, you can see that the members in the ui are included
Solution: Just add this header file.directory project\Debug\uic\ui_xxx.h


----------------------------------------------------------------
Chinese garbled characters
Solution:
Add to main.cpp
#if _MSC_VER >= 1600#pragma execution_character_set("utf-8")// This instruction only supports VS environment#endif边栏推荐
- 8. Unified exception handling (controller notifies @ControllerAdvice global configuration class, @ExceptionHandler handles exceptions uniformly)
- Multilingual settings of php website (IP address distinguishes domestic and foreign)
- 【Exception】The field file exceeds its maximum permitted size of 1048576 bytes.
- 7、私信列表
- JS function this context runtime syntax parentheses array IIFE timer delay self.backup context call apply
- Mysql 45讲学习笔记(二十五)MYSQL保证高可用
- 【编译原理】递归下降语法分析设计原理与实现
- 7. List of private messages
- 什么是分布式锁?实现分布式锁的三种方式
- [Compilation principle] Design principle and implementation of recursive descent parsing
猜你喜欢

IDEA 注释报红解决

【C语言】求两个整数m和n的最大公因数和最小公倍数之和一般方法,经典解法

【C语言】预处理操作

TCP和UDP详解

Moxa NPort 设备缺陷可能使关键基础设施遭受破坏性攻击

Software accumulation -- Screenshot software ScreenToGif

【异常】The field file exceeds its maximum permitted size of 1048576 bytes.

MultipartFile文件上传

SIP协议标准和实现机制

JS function this context runtime syntax parentheses array IIFE timer delay self.backup context call apply
随机推荐
[C language foundation] Solve C language error: expected ';', ',' or ')' before '&' token
Analysis summary - self-use
什么是系统?
CorelDRAW2022 streamlined Asia Pacific new features in detail
数据库实现分布式锁
自己的一些思考
【编译原理】词法分析程序设计原理与实现
【C语言】表达式求值的一般方法
CloudCompare & PCL calculate the degree of overlap between two point clouds
Project (5) - Small target detection tph-yolov5
Crypto Firms Offer Offer To Theft Hackers: Keep A Little, Give The Rest
StringJoiner in detail
什么是分布式锁?实现分布式锁的三种方式
7、私信列表
8. Unified exception handling (controller notifies @ControllerAdvice global configuration class, @ExceptionHandler handles exceptions uniformly)
【CocosCreator 3.5】CocosCreator get network status
共模电感的仿真应用来了,满满的干货送给大家
品牌广告投放平台的中台化应用与实践
[Android] Room - Alternative to SQLite
els 方块向右移