当前位置:网站首页>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 ”
边栏推荐
- Project practice | excel export function
- 基于模板配置的数据可视化平台
- How to correctly evaluate video image quality
- 让AI替企业做复杂决策真的靠谱吗?参与直播,斯坦福博士来分享他的选择|量子位·视点...
- 卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
- Flutter development: a way to solve the problem of blank space on the top of listview
- Apache dolphin scheduler system architecture design
- Analysis on the wallet system architecture of Baidu trading platform
- 从“化学家”到开发者,从甲骨文到 TDengine,我人生的两次重要抉择
- uni-app---uni. Navigateto jump parameter use
猜你喜欢
How to use sqlcipher tool to decrypt encrypted database under Windows system
mysql80服务不启动
Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"
Tdengine connector goes online Google Data Studio app store
Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process
Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
[sourcetree configure SSH and use]
写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
【sourceTree配置SSH及使用】
Analysis on the wallet system architecture of Baidu trading platform
随机推荐
Flutter development: a way to solve the problem of blank space on the top of listview
为什么不建议你用 MongoDB 这类产品替代时序数据库?
Community group buying has triggered heated discussion. How does this model work?
Node red series (29): use slider and chart nodes to realize double broken line time series diagram
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
LeetCode 31. Next spread
Charm of code language
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
百度智能小程序巡检调度方案演进之路
[200 opencv routines] 219 Add digital watermark (blind watermark)
SQL learning - case when then else
The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?
Viewpager pageradapter notifydatasetchanged invalid problem
[two objects merged into one object]
剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
如何获取GC(垃圾回收器)的STW(暂停)时间?
搞数据库是不是越老越吃香?
小程序启动性能优化实践
uni-app---uni.navigateTo跳转传参使用
【对象数组的排序】