当前位置:网站首页>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
边栏推荐
- els 方块向左移动条件判断
- 【Exception】The field file exceeds its maximum permitted size of 1048576 bytes.
- CloudCompare & PCL calculate the degree of overlap between two point clouds
- SQL injection Less54 (limited number of SQL injection + union injection)
- 学习DAVID数据库(1)
- [C language foundation] Solve C language error: expected ';', ',' or ')' before '&' token
- How to develop a high-quality test case?
- [Godot][GDScript] 2D cave map randomly generated
- SonarQube的BUG定义
- Day32 LeetCode
猜你喜欢
随机推荐
遗留系统的自动化策略
What is SQALE
web容器及IIS --- 中间件渗透方法1
some of my own thoughts
Moxa NPort 设备缺陷可能使关键基础设施遭受破坏性攻击
QML的使用
[Dynamic programming] Maximum sum of consecutive subarrays
TCP/IP four-layer model
下载jar包的好地方
10 Permission introduction
C#远程调试
Annotation usage meaning
Multilingual settings of php website (IP address distinguishes domestic and foreign)
The els block moves the boundary to the right, and accelerates downward.
Office automation case: how to automatically generate period data?
Number 16, top posts
Graphical lower_bound & upper_bound
Observer pattern
Crypto Firms Offer Offer To Theft Hackers: Keep A Little, Give The Rest
SQL injection Less47 (error injection) and Less49 (time blind injection)