当前位置:网站首页>QT 64 bit static version display gif
QT 64 bit static version display gif
2022-04-23 11:19:00 【Brother dampness】
This article is suitable for 64 position qt The static version shows gif Altogether 4 Step
1. Add macro Q_IMPORT_PLUGIN(QGifPlugin)
int main(int argc, char *argv[])
{
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
Q_IMPORT_PLUGIN(QGifPlugin)
//Q_IMPORT_PLUGIN(QICNSPlugin)
//Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin);
QApplication a(argc, argv);
QTGuitest w;
w.show();
return a.exec();
}
2. Check whether the static version supports gif
View the compiled version :Qt\Qt5.8.0_static\plugins\imageformats Whether there is qgifd.lib qgif.lib library
3. If it exists, it will be introduced into the project. If it is used vs qt Just add Additional dependency Libraries :qgifd.lib I'm using debug Version of
4. In order to save trouble , Put these libraries in the compile and run folder , I did it all , You can only add one place , You can also add the library header file directory index
5. Add one label
QMovie *movie = new QMovie("D:/500.gif");
ui.label_9->setMovie(movie);
movie->start();
6. succeed , No, Difficult work , Only brave dogs

版权声明
本文为[Brother dampness]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231115091404.html
边栏推荐
- Mysql中有关Datetime和Timestamp的使用总结
- Analysis on the characteristics of the official game economic model launched by platoffarm
- C#的学习笔记【八】SQL【一】
- Mba-day5 Mathematics - application problems - engineering problems
- PlatoFarm推出正式版游戏经济模型的特点分析
- QT 怎么把QWigdet变成QDialog
- An interesting interview question
- MySQL sorting feature details
- 学习 Go 语言 0x08:《Go 语言之旅》中 练习使用 error
- GPU, CUDA,cuDNN三者的關系總結
猜你喜欢
随机推荐
Constraintlayout layout
mysql创建存储过程及函数详解
C#的学习笔记【八】SQL【一】
Jupyter lab top ten high productivity plug-ins
Oracle connectivity test gadget
Mba-day5 Mathematics - application problems - engineering problems
Mysql中一千万条数据怎么快速查询
学习 Go 语言 0x03:理解变量之间的依赖以及初始化顺序
Jupyter Lab 十大高生产力插件
小程序 支付
Mysql系列SQL查询语句书写顺序及执行顺序详解
MySQL partition table can be classified by month
分享两个实用的shell脚本
@Valid, @ validated learning notes
Cygwin 中的 rename 用法
MySQL Router重装后重新连接集群进行引导出现的——此主机中之前已配置过的问题
Software testers, how to mention bugs?
MBA-day5數學-應用題-工程問題
Facing the global market, platefarm today logs in to four major global platforms such as Huobi
分享两个实用的shell脚本








