当前位置:网站首页>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边栏推荐
- Software accumulation -- Screenshot software ScreenToGif
- PMP WeChat group daily exercises
- 7、私信列表
- [Dynamic programming] Maximum sum of consecutive subarrays
- BUG definition of SonarQube
- 4. Sensitive word filtering (prefix tree)
- QML的使用
- [C language foundation] Solve C language error: expected ';', ',' or ')' before '&' token
- Number 16, top posts
- CloudCompare & PCL calculate the degree of overlap between two point clouds
猜你喜欢

LeetCode simple problem to find the subsequence of length K with the largest sum

4、敏感词过滤(前缀树)

分布式与集群是什么 ? 区别是什么?

6、显示评论和回复

6. Display comments and replies

STM32 problem collection

Recursive query single table - single table tree structure - (self-use)

The whole process scheduling, MySQL and Sqoop

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

递归查询单表-单表树结构-(自用)
随机推荐
下载jar包的好地方
SQL injection Less46 (injection after order by + rand() Boolean blind injection)
MultipartFile file upload
【异常】The field file exceeds its maximum permitted size of 1048576 bytes.
SocialFi 何以成就 Web3 去中心化社交未来
What is a distributed lock?Three ways of implementing distributed lock
Local area network computer hardware information collection tool
分布式与集群是什么 ? 区别是什么?
15. Website Statistics
SQL injection Less54 (limited number of SQL injection + union injection)
【C语言】求两个整数m和n的最大公因数和最小公倍数之和一般方法,经典解法
MP使用时的几个常见报错
【C语言】三子棋(经典解法+一览图)
els 方块向右移动边界判断、向下加速
PMP微信群日常习题
Detailed explanation of TCP (3)
点云DBSCAN聚类(MATLAB,非内置函数)
els 方块向右移
web容器及IIS --- 中间件渗透方法1
什么是系统?