当前位置:网站首页>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 连接器上线 Google Data Studio 应用商店
- LeetCode 556. Next bigger element III
- TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries
- 干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
- What are the advantages of the live teaching system to improve learning quickly?
- 为什么不建议你用 MongoDB 这类产品替代时序数据库?
- First understanding of structure
- 卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
- Understanding of smt32h7 series DMA and DMAMUX
- How Windows bat script automatically executes sqlcipher command
猜你喜欢

Unity skframework framework (24), avatar controller third person control

Why don't you recommend using products like mongodb to replace time series databases?

How to correctly evaluate video image quality

为什么不建议你用 MongoDB 这类产品替代时序数据库?

Common fault analysis and Countermeasures of using MySQL in go language

First understanding of structure

Viewpager pageradapter notifydatasetchanged invalid problem

Evolution of Baidu intelligent applet patrol scheduling scheme

Charm of code language
![[200 opencv routines] 219 Add digital watermark (blind watermark)](/img/ac/f6d16e74538bd589a1f6faee08d59a.png)
[200 opencv routines] 219 Add digital watermark (blind watermark)
随机推荐
About getfragmentmanager () and getchildfragmentmanager ()
cent7安装Oracle数据库报错
Kotlin Compose 与原生 嵌套使用
What should we pay attention to when entering the community e-commerce business?
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
Wechat applet obtains household area information
idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试
Community group buying has triggered heated discussion. How does this model work?
Android SQLite database encryption
Apache dolphin scheduler system architecture design
How to use sqlcipher tool to decrypt encrypted database under Windows system
Resolve the horizontal (vertical) sliding conflict between viewpager and WebView
TDengine ×英特尔边缘洞见软件包 加速传统行业的数字化转型
Node red series (29): use slider and chart nodes to realize double broken line time series diagram
【el-table如何禁用】
Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process
The comparison of every() and some() in JS uses a power storage plan
植物大战僵尸Scratch
H.265编码原理入门
Lepton 无损压缩原理及性能分析