当前位置:网站首页>QT timer realizes dynamic display of pictures
QT timer realizes dynamic display of pictures
2022-07-05 09:56:00 【Sunqk5665】
This is achieved by timer “ The flying of butterflies ”
The main use is timer
1、 The process
Create a new one Widget, In the header file widget.h Add the declaration of timer in
Add... To the design interface l Two lable, One lable Add a picture of a butterfly spreading its wings , the other one lable Add a picture of a butterfly closing its wings , Ensure two lable It is the same size as the two pictures , In this way, the final effect is the best
And then in widget.cpp Set the timer and reconstruct the timing function in the source file
Here we want to realize the interval switching and moving of pictures , To set two timers , One is used to control the picture display , The other is used to control the frontal coordinate movement of the picture .
2、 effect
Watch the running video below
adopt Qt Realization “ Butterfly flies ”
边栏推荐
- 搞数据库是不是越老越吃香?
- TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries
- Charm of code language
- First understanding of structure
- Fluent development: setting method of left and right alignment of child controls in row
- Why don't you recommend using products like mongodb to replace time series databases?
- uni-app---uni. Navigateto jump parameter use
- Getting started with Apache dolphin scheduler (one article is enough)
- Principle and performance analysis of lepton lossless compression
- Lepton 无损压缩原理及性能分析
猜你喜欢
Common fault analysis and Countermeasures of using MySQL in go language
[200 opencv routines] 219 Add digital watermark (blind watermark)
Small program startup performance optimization practice
Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
Why do offline stores need cashier software?
Windows uses commands to run kotlin
Tdengine can read and write through dataX, a data synchronization tool
How do enterprises choose the appropriate three-level distribution system?
移动端异构运算技术-GPU OpenCL编程(进阶篇)
[sourcetree configure SSH and use]
随机推荐
单片机原理与接口技术(ESP8266/ESP32)机器人类草稿
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
使用el-upload封装得组件怎么清空已上传附件
卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
What are the advantages of the live teaching system to improve learning quickly?
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
Community group buying has triggered heated discussion. How does this model work?
How to implement complex SQL such as distributed database sub query and join?
SMT32H7系列DMA和DMAMUX的一点理解
Tdengine connector goes online Google Data Studio app store
How to correctly evaluate video image quality
Tdengine can read and write through dataX, a data synchronization tool
MYSQL 对字符串类型排序不生效问题
从“化学家”到开发者,从甲骨文到 TDengine,我人生的两次重要抉择
mysql安装配置以及创建数据库和表
Are databases more popular as they get older?
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
Fluent development: setting method of left and right alignment of child controls in row
剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
Oracle combines multiple rows of data into one row of data