当前位置:网站首页>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
边栏推荐
- CUMCM 2021-b: preparation of C4 olefins by ethanol coupling (2)
- Canvas详解
- MySQL对数据表已有表进行分区表的实现
- Usage of rename in cygwin
- 得物技术网络优化-CDN资源请求优化实践
- Mba-day6 logic - hypothetical reasoning exercises
- 数据库管理软件SQLPro for SQLite for Mac 2022.30
- FileProvider 路径配置策略的理解
- Prevent SQL injection in web projects
- Résumé de la relation entre GPU, cuda et cudnn
猜你喜欢

Database management software sqlpro for SQLite for Mac 2022.30

After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before

Mysql8. 0 installation guide

解读机器人编程课程的生物认知度

An interesting interview question

采用百度飞桨EasyDL完成指定目标识别

语雀文档编辑器将开源:始于但不止于Markdown

SVN的使用:

26. Delete duplicates in ordered array

About the three commonly used auxiliary classes of JUC
随机推荐
laravel-admin时间范围选择器dateRange默认值问题
MySQL分区表实现按月份归类
My creation anniversary
Usage of rename in cygwin
mysql中整数数据类型tinyint详解
MySQL8. 0 upgraded stepping on the pit Adventure
@Valid, @ validated learning notes
MySQL索引优化之分页探索详细介绍
Structure of C language (Advanced)
分享两个实用的shell脚本
mysql创建存储过程及函数详解
qt5.8 64 位静态库中想使用sqlite但静态库没有编译支持库的方法
分享两个实用的shell脚本
汇编语言 运行环境设置等教程链接整理
C语言之结构体(进阶篇)
mysql分表之后如何平滑上线详解
Excel·VBA数组冒泡排序函数
R-drop: a more powerful dropout regularization method
QT信号量 无法解析的错误的总结
CUMCM 2021-b: preparation of C4 olefins by ethanol coupling (2)