当前位置:网站首页>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边栏推荐
- IDEA comment report red solution
- 自己的一些思考
- Local area network computer hardware information collection tool
- web容器及IIS --- 中间件渗透方法1
- [C language foundation] Solve C language error: expected ';', ',' or ')' before '&' token
- C# remote debugging
- C#远程调试
- LeetCode中等题之分数加减运算
- Recursive query single table - single table tree structure - (self-use)
- els 方块向左移动条件判断
猜你喜欢
随机推荐
Installation of mysql5.7.37 under CentOS7 [perfect solution]
TCP/IP four-layer model
C primer plus学习笔记 —— 8、结构体
4、敏感词过滤(前缀树)
【异常】The field file exceeds its maximum permitted size of 1048576 bytes.
Discourse Custom Header Links
[Godot][GDScript] 2D cave map randomly generated
Atomic operation CAS
STM32 problem collection
Unity3D Button mouse hover enter and mouse hover exit button events
Chapter 9 SVM Practice
SIP协议标准和实现机制
Day32 LeetCode
Number 16, top posts
[C language foundation] Solve C language error: expected ';', ',' or ')' before '&' token
16、热帖排行
SonarQube的BUG定义
大小端模式
Getting Started with CefSharp - winform
加密公司向盗窃的黑客提供报价:保留一点,把剩下的归还









