当前位置:网站首页>qt 64位静态版本显示gif
qt 64位静态版本显示gif
2022-04-23 11:15:00 【还债大湿兄】
本文章适合64位qt静态版本显示gif 共分4步
1.添加宏 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.查看静态版本是否支持gif
查看编译的版本下:Qt\Qt5.8.0_static\plugins\imageformats 是否存在qgifd.lib qgif.lib库
3.存在的话就引入到工程如果是用vs qt就加在 附加依赖库 :qgifd.lib 我这用的是debug版本的
4.为了省事,把这些库放入编译和运行文件夹,我全上了,你们可以只加一个地方啊,也可以加入库头文件目录索引
5.添加一个label
QMovie *movie = new QMovie("D:/500.gif");
ui.label_9->setMovie(movie);
movie->start();
6.成功了,没有 困难的工作,只有勇敢的狗狗
版权声明
本文为[还债大湿兄]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_30377315/article/details/118329516
边栏推荐
- Mysql8. 0 installation guide
- Cumcm 2021 - B: préparation d'oléfines C4 par couplage éthanol (2)
- Visual common drawing (I) stacking diagram
- MySQL failed to insert the datetime type field without single quotation marks
- remote: Support for password authentication was removed on August 13, 2021.
- Source insight 4.0 FAQs
- 分享两个实用的shell脚本
- Visual Road (XII) detailed explanation of collection class
- GO接口使用
- Learn go language 0x07: stringer exercise code in go language journey
猜你喜欢
比深度学习更值得信赖的模型ART
Source insight 4.0 FAQs
Visualization Road (11) detailed explanation of Matplotlib color
Visual common drawing (I) stacking diagram
Google Earth Engine(GEE)——将原始影像进行升尺度计算(以海南市为例)
R-drop: a more powerful dropout regularization method
Solutions to common problems in visualization (VIII) solutions to problems in shared drawing area
Excel·VBA数组冒泡排序函数
2022爱分析· 工业互联网厂商全景报告
Visualization Road (10) detailed explanation of segmentation canvas function
随机推荐
防止web项目中的SQL注入
MySQL interview questions explain how to set hash index
More reliable model art than deep learning
MySQL面试题讲解之如何设置Hash索引
得物技术网络优化-CDN资源请求优化实践
Which company is good for opening futures accounts? Who can recommend several safe and reliable futures companies?
web三大组件(Servlet,Filter,Listener)
Solve the problem of "suncertpathbuilderexception: unable to find valid certification path to requested target"
MIT: label every pixel in the world with unsupervised! Humans: no more 800 hours for an hour of video
Google Earth engine (GEE) - scale up the original image (taking Hainan as an example)
我的创作纪念日
Learn go language 0x06: Fibonacci closure exercise code in go language journey
Oracle connectivity test gadget
Visualized common drawing (II) line chart
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
Detailed explanation of how to smoothly go online after MySQL table splitting
SVN的使用:
MySQL sorting feature details
SWAT - Introduction to Samba web management tool
小程序 支付