wangwenx190 / qtlottie Goto Github PK
View Code? Open in Web Editor NEWQtLottie is a tiny C++ library that can render Adobe® After Effects™ animations exported as JSON with Bodymovin.
License: MIT License
QtLottie is a tiny C++ library that can render Adobe® After Effects™ animations exported as JSON with Bodymovin.
License: MIT License
我发现QT lottie在高清屏下会出现明显的锯齿,想请教一下如何适配呢
有些lottie图不能翻转
connect(m_drawEngine, &QtLottieDrawEngine::durationChanged, this, &QtLottieWidget::durationChanged);
connect(m_drawEngine, &QtLottieDrawEngine::sizeChanged, this, &QtLottieWidget::sourceSizeChanged);
connect(m_drawEngine, &QtLottieDrawEngine::loopsChanged, this, &QtLottieWidget::loopsChanged);
connect(m_drawEngine, &QtLottieDrawEngine::devicePixelRatioChanged, this, &QtLottieWidget::devicePixelRatioChanged);
比如&QtLottieWidget::sourceSizeChanged,是可以适配资源大小改变吗
情况:父qwidget窗口上叠放着两个QtLottieWidget子窗口,在其中一个QtLottieWidget上覆盖透明按钮用于按钮特效,另一个用于窗口背景特效
最初使用setSource接口接入按钮clicked信号切换不同lottie的json文件实现特效状态转换效果
结果:发现频繁点击出现闪屏现象,移开透明按钮,发现是QtLottieWidget闪屏,按钮叠在另一个lottiewidget上也出会现闪屏现象
尝试:后面使用不同的QtLottieWidget,尝试qt函数show() hide() 和 QtLottie函数resume() pause()实现状态切换,闪屏情况有好转但还是会出现闪屏(频繁点击情况下)
按钮存在初始-启动-循环三个lottie动画,背景存在初始-循环两个lottie状态
尝试:MFC以前碰过类似问题处理WM_ERASEBKGND解决,但qt没找到类似方案
"cmake --install . " doesn't work. I get this:
-- Install configuration: ""
and nothing is changed. Other project's cmake can't find it
OS: ArchLinux
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.