当前位置:网站首页>QT solves the problem of rebuilding UI files every time they are modified
QT solves the problem of rebuilding UI files every time they are modified
2022-07-28 06:32:00 【Schoolmate Xiaotu!】
Preface
qt creator There are many places with poor experience in use ,qt designer After each modification ui After the files are rebuilt , It can only be recognized in the code ui The contents of the document , The experience is bad
Adopt dynamic loading UI File and generate interface
Implementation method :
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// MainWindow w;
// w.show();
QUiLoader loader;
QFile file("mainwindow.ui");
loader.load(&file)->show();
return a.exec();
}
Only need to modify main Function , Need to add in profile CONFIG += uitools
In this way, after each modification ui file , There is no need to rewrite the compilation
边栏推荐
- 雷达成像 Matlab 仿真 2 —— 脉冲压缩与加窗
- 机器学习笔记 5 —— Logistic Regression
- Cronbach’s α?KMO系数?因子载荷?史上最易懂的问卷信效度分析教程!!!(SPSS和AMOS)
- Monitor the CPU temperature of raspberry pie 4B installed with esxi on ARM
- Matlab simulation of radar imaging 2 - pulse compression and windowing
- USB network native driver for esxi updated to support esxi7.0.1
- A NOVEL DEEP PARALLEL TIME-SERIES RELATION NETWORK FOR FAULT DIAGNOSIS
- Paper artifact vs code + latex + latex workshop
- Word邮件合并功能详解:合并后生成多个word文档,删除空白页
- 自定义组件--数据监听器
猜你喜欢

Exploration of Clickhouse aggregation internal mechanism of aggregation

测量电脑电池容量

【YOLOv5】环境搭建:Win11 + mx450

IMS-FACNN(Improved Multi-Scale Convolution Neural Network integrated with a Feature Attention Mecha

Common table expression CTE in Clickhouse

error: redefinition of ‘xxx‘

VAN(DWConv+DWDilationConv+PWConv)

雷达成像 Matlab 仿真 4 —— 距离分辨率分析

clickhouse聚合之探索聚合内部机制

EfficientNET_ V1
随机推荐
Word邮件合并功能详解:合并后生成多个word文档,删除空白页
set_ false_ path
解决内存占用比应用进程占用高的问题
mixup_ ratio
Selection of PLC
基于 YOLOV5 的 SAR 图像舰船检测
MySQL安装与使用
听说你也在实习|当我采访了几个大三实习生之后。
How can fluke dsx2-5000 and dsx2-8000 modules find the calibration expiration date?
ICC2(三)Clock Tree Synthesis
【学习笔记】链表操作
自定义组件--样式
自定义组件--插槽
ubuntu mysql 设置远程访问权限
MFC 使用控制台打印程序信息
Hugging face 的问题记录 I
mysql删表不删库
Pytorch learning notes 2 - about tensor
【学习笔记】驱动
Talking about fluke optical cable certification? What is CFP? What is OFP?