当前位置:网站首页>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
边栏推荐
- TCP详解(三)
- 10 Permission introduction
- SQL injection Less46 (injection after order by + rand() Boolean blind injection)
- 递归查询单表-单表树结构-(自用)
- C primer plus学习笔记 —— 8、结构体
- 【C语言】进制转换一般方法
- Detailed explanation of TCP (1)
- The simulation application of common mode inductance is here, full of dry goods for everyone
- PMP WeChat group daily exercises
- [Godot][GDScript] 二维洞穴地图随机生成
猜你喜欢
随机推荐
LeetCode simple problem to find the subsequence of length K with the largest sum
MP使用时的几个常见报错
10. Redis implements likes (Set) and obtains the total number of likes
els block to the right
JetPack component Databinding
Chapter 9 SVM实践
els 方块向右移动边界判断、向下加速
JS function this context runtime syntax parentheses array IIFE timer delay self.backup context call apply
遗留系统的自动化策略
8. Unified exception handling (controller notifies @ControllerAdvice global configuration class, @ExceptionHandler handles exceptions uniformly)
Atomic operation CAS
[Android] Room - Alternative to SQLite
CloudCompare & PCL calculate the degree of overlap between two point clouds
QML的使用
[Godot][GDScript] 2D cave map randomly generated
Number 16, top posts
els 方块向右移
多线程下类对象的服务承诺探讨
Mycat's master-slave relationship, vertical sub-database, horizontal sub-table, and detailed configuration of mycat fragmented table query (mysql5.7 series)
【C语言】三子棋(经典解法+一览图)