当前位置:网站首页>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 ”
边栏推荐
- MySQL does not take effect in sorting string types
- Flutter development: a way to solve the problem of blank space on the top of listview
- Data visualization platform based on template configuration
- Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
- 剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
- Getting started with Apache dolphin scheduler (one article is enough)
- Tongweb set gzip
- Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"
- Fluent development: setting method of left and right alignment of child controls in row
- Lepton 无损压缩原理及性能分析
猜你喜欢
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
Why don't you recommend using products like mongodb to replace time series databases?
On July 2, I invite you to TD Hero online press conference
SQL learning - case when then else
How do enterprises choose the appropriate three-level distribution system?
Principle and performance analysis of lepton lossless compression
LeetCode 496. Next larger element I
Node の MongoDB Driver
揭秘百度智能测试在测试自动执行领域实践
Unity SKFramework框架(二十三)、MiniMap 小地图工具
随机推荐
MYSQL 对字符串类型排序不生效问题
干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
How to implement complex SQL such as distributed database sub query and join?
为什么不建议你用 MongoDB 这类产品替代时序数据库?
Unity skframework framework (XXII), runtime console runtime debugging tool
观测云与 TDengine 达成深度合作,优化企业上云体验
SMT32H7系列DMA和DMAMUX的一点理解
分布式数据库下子查询和 Join 等复杂 SQL 如何实现?
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
如何获取GC(垃圾回收器)的STW(暂停)时间?
La voie de l'évolution du système intelligent d'inspection et d'ordonnancement des petites procédures de Baidu
idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试
7 月 2 日邀你来TD Hero 线上发布会
Oracle combines multiple rows of data into one row of data
[app packaging error] to proceed, either fix the issues identified by lint, or modify your build script as follow
TDengine可通过数据同步工具 DataX读写
让AI替企业做复杂决策真的靠谱吗?参与直播,斯坦福博士来分享他的选择|量子位·视点...
Tdengine connector goes online Google Data Studio app store