当前位置:网站首页>qt解决每次修改完ui文件都要重新构建的问题
qt解决每次修改完ui文件都要重新构建的问题
2022-07-28 05:25:00 【小土同学!】
前言
qt creator在使用上有许多体验很差的地方,qt designer每次修改完ui文件都要重新构建后,代码中才能识别ui文件里的内容,体验感很差
采用动态加载UI文件并生成界面
实现方法:
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();
}
只需修改main函数即可,需要在配置文件中添加CONFIG += uitools
这样每次修改完ui文件,就不用重写编译
边栏推荐
- Transformer self attention mechanism and complete code implementation
- Vs code basic configuration and beautification
- Surge impact immunity experiment (surge) -emc series Hardware Design Notes 6
- The short jumper dsx-8000 test is normal, but the dsx-5000 test has no length display?
- For a large amount of data, matlab generates Excel files and typesetting processing source code
- VB OCX applied to Web
- Pytorch learning notes 3 - datasets & dataloaders & transforms
- JSP实现文件上传功能的同时还要向后台传递参数
- How to calibrate dsx2-8000? Calibration process?
- ICC2分析时序的神器 analyze_design_violations
猜你喜欢

PyTorch 学习笔记 4 —— 自动计算梯度下降 AUTOGRAD

mixup_ratio

Communication between DSP and FPGA

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

How to calibrate dsx2-8000? Calibration process?

Install visual studio 2019 steps and vs2019 offline installation package on win7

The short jumper dsx-8000 test is normal, but the dsx-5000 test has no length display?

多个ics日历合并成单个ics日历

Pytorch learning note 4 - automatic calculation of gradient descent autograd

简述EMD分解、希尔伯特变换、谱方法
随机推荐
AEM online product promotion conference - Cable certification tester
EMC experiment practical case ESD electrostatic experiment
Bag of tricks training convolution network skills
ICC2(一)Preparing the Design
Design and analysis of contactor coil control circuit
Varistor design parameters and classic circuit recording hardware learning notes 5
T-sne dimension reduction visualization
USB network native driver for esxi updated to support esxi7.0 Update 2
Systemmediasize startup option added in esxi 7.0 update 1C
What is the AEM testpro cv100 and fluke dsx-8000 of category 8 network cable tester?
mysql删表不删库
Shuffle Net_ v1-shuffle_ v2
VAN(DWConv+DWDilationConv+PWConv)
Photovoltaic power generation system MPPT maximum power point tracking
Cronbach’s α? Kmo coefficient? Factor load? The most understandable course of questionnaire reliability and validity analysis in history!!! (SPSS and AMOS)
What happens when MySQL tables change from compressed tables to ordinary tables
MATLAB signal processing
Esxi on arm 10/22 update
PyTorch 学习笔记 3 —— DATASETS & DATALOADERS & TRANSFORMS
雷达成像 Matlab 仿真 4 —— 距离分辨率分析