当前位置:网站首页>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 ”
边栏推荐
- A keepalived high availability accident made me learn it again
- Node の MongoDB Driver
- Why do offline stores need cashier software?
- Unity skframework framework (XXIII), minimap small map tool
- oracle 多行数据合并成一行数据
- Three-level distribution is becoming more and more popular. How should businesses choose the appropriate three-level distribution system?
- Community group buying exploded overnight. How should this new model of e-commerce operate?
- From "chemist" to developer, from Oracle to tdengine, two important choices in my life
- Understand the window query function of tdengine in one article
- On July 2, I invite you to TD Hero online press conference
猜你喜欢
正式上架!TDengine 插件入驻 Grafana 官网
解决Navicat激活、注册时候出现No All Pattern Found的问题
从“化学家”到开发者,从甲骨文到 TDengine,我人生的两次重要抉择
The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?
[sourcetree configure SSH and use]
Lepton 无损压缩原理及性能分析
Charm of code language
Data visualization platform based on template configuration
SMT32H7系列DMA和DMAMUX的一点理解
On July 2, I invite you to TD Hero online press conference
随机推荐
Apache DolphinScheduler 系统架构设计
Oracle combines multiple rows of data into one row of data
Three-level distribution is becoming more and more popular. How should businesses choose the appropriate three-level distribution system?
Flutter development: use safearea
Gradientdrawable get a single color
Common fault analysis and Countermeasures of using MySQL in go language
让AI替企业做复杂决策真的靠谱吗?参与直播,斯坦福博士来分享他的选择|量子位·视点...
SQL learning - case when then else
Flutter development: a way to solve the problem of blank space on the top of listview
TDengine可通过数据同步工具 DataX读写
Android privacy sandbox developer preview 3: privacy, security and personalized experience
Fluent development: setting method of left and right alignment of child controls in row
百度评论中台的设计与探索
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
Tongweb set gzip
Tdengine offline upgrade process
Unity skframework framework (24), avatar controller third person control
Small program startup performance optimization practice
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode