当前位置:网站首页>QT Weekly Skills (1) ~~~~~~~~~ Running Icon
QT Weekly Skills (1) ~~~~~~~~~ Running Icon
2022-07-30 07:15:00 【transparent light】
前言
利用QTThe software has been used for upper display and control for some time,After consulting with experts and adding their own efforts,Gradually mastered object-oriented programming.Looking back at the first one I designedQT显示软件,It is the same as reading your own published papers for many years after graduation,It's the same as the first microcontroller program I wrote many years later.,feel like shit,Why did this only happen in the first place,Why do it so frustratingly.Perhaps it is a little bit of progress in yourself.So you feel it is necessary to write out their own design ideas and design methods,make need to learnQTYour little friends can take less detours,Being able to step in in one step is not an entry-level design.Of course, it is estimated that in the future, my current design will also be shit.,One stage, one vision,Just grow slowly.
Looking back now, the program written a month ago is already in a fog,Looking at the embedded screen programming software, I have forgotten the idea,So I feel that I need to write my own program design.,In order to prevent the future self from not understanding the program written by myself,In order to prevent seeing your own program in the future:这TMwho wrote the program,like shit.
第一节:内容
内容:QTContent is scattered,The techniques used are also scattered,So I thought I could record something that could be used..
1. Establishment of the initial program;
2. 图标的添加;
3. 程序的发布;
4. Publishing of stand-alone programs.
第二节:设计步骤
1. 初始程序

The initial operation interface is shown in the figure above,这个就不过多介绍了,最基本的.
2. 修改文字

uiin the options on the right,修改windowtitle,Write the desired title text,修改如下:

修改后运行效果如下:

这时,The title of the window has been changed to the desired text.
3. 修改图标
(1)选定图片,转化为ico文件,Can be converted online,The required partners can log in as follows:

(2)放入对应文件夹

注意:这里icoThe name of the file must match the name of your program,如果不一致,There is no way to modify the picturebug,试过几次,There is no way to modify the icon,So I honestly changed the image name to the project name.
(3)添加程序

在proAdd the corresponding program to the corresponding position in the,This will not paste the source code,Just hit it,
(4)效果

It is found that the icon next to the title has been changed from the initial icon to the desired image,同时生成的debug文件中,exeThe icon is also changed to the one we need,如图:

4. 发布
将exe文件拷贝出,into another new folder:

打开cmd界面,run the publisher,Specifically how to publish online tutorials a lot,Mainly enter the required folder,运行win...的指令,Automatically generate a bunch of files.

此时,这个文件夹中的exe是可以单独运行的,You can copy the folder directly,on another computer,没有装QTThe computer can also run the software.

5. 独立发布exe文件
So many files are needed each time,不方便,Download the software below:

The specific software name is already in the picture,You can install it yourself,There are many specific tutorials online,这里就不赘述了.Select the folder you just published.The input above selects the just postedexe文件,Just choose the output.
注意:Must be the name of the folder,Cannot select specific files,Include content must include everything that was just published.

运行后:This process takes about half a minute,Loading a lot of files,so if you load too fast,Indicates that there are fewer files you have selected,可能运行不了.

查看文件夹:Now there is one more in the folderexe文件,非常大,因为包含了QTrequired library files,这个没有办法,If your program is large,This thing doesn't grow linearly in size,will only grow a little,Most of the files included in the description are notQTThe library files required in the case of.

6. 效果
将生成的exe文件拷出,put anywhere,点击运行,found to work independently.至此,An interface is an interface of its ownexe文件完成.

第三节 写在最后
It's almost like what it ended up with.,Looking at is also more comfortable.
The concerned friends can find the source code directly in the Baidu network disk of historical news,the previous serial port andcanThe transmitted source code is also in the history message,没办法,Can the public account zoom in on things?,Can't transfer large things either,So I can only give a Baidu connection to let my friends download it by themselves.Friends who need this source code can pay attention to the official account.The source code of this program will also be put into the official account later.

边栏推荐
- 迪文串口屏幕制作(连载一)=====准备工作
- openssl 1.1.1编译语句
- 【正点原子】sys.c、sys.h位带操作的简单应用
- 基于PyTorch深度学习无人机遥感影像目标检测、地物分类及语义分割
- 信号链模拟芯片是什么?
- 【青岛站】SWAT模型高阶应用暨无资料地区建模、不确定分析与气候变化、土地利用对面源污染影响模型改进及案例分析研讨
- [Punctuality Atom] Simple application of sys.c, sys.h bit-band operations
- clinit方法
- 服务器基础知识:包含基本概念,作用,服务器选择,服务器管理等(学习来自米拓建站)
- QT每周技巧(1)~~~~~~~~~运行图标
猜你喜欢

遥感、GIS和GPS技术在水文、气象、灾害、生态、环境及卫生等应用

"R Language + Remote Sensing" Comprehensive Evaluation Method of Water Environment

MindSpore 提 PR 全流程

Antd 树拖拽一些细节,官网没有,摸坑篇

Antd简单启动一个企业级项目

查找Proj4js地图投影参数

QT连载3:基于QT和STM32H750的LORA试验平台(2)

基于PyTorch深度学习无人机遥感影像目标检测、地物分类及语义分割

【正点原子】sys.c、sys.h位带操作的简单应用

BLDC电机应用持续火爆,“网红神器”筋膜枪前景几何?
随机推荐
1.03 original Acegi security mechanism
[Jiangsu University Automation Association stm32F103c8t6] Notes [Initial 32 MCU and EXTI External Interrupt Initialization Parameter Configuration]
Configure MMdetection environment and train
QT串口和CAN数据动态实时显示最后日志
Difference between logical shift right and arithmetic right shift
jvm之方法区
Three working modes of CPU: real mode, protected mode, long mode
思谋面试准备
Atmospheric particulate matter PMF source analysis
自定义类加载器
边境的悍匪—机器学习实战:第九章 无监督学习任务
HSPF model application
联影医疗一面
昆仑通态屏幕制作(连载3)---基础篇(按钮串口发送)
OpenLayers 初学者指南,源码测试可用
OpenLayers (ol包),Vite显示地图(附源码)
大气颗粒物 PMF 源解析
【江科大自化协stm32F103c8t6】笔记之【入门32单片机及GPIO初始化参数配置】
i++与 ++i 的区别
R语言 生态环境领域应用