开发者

Qt deploying qgif4.dll plugin for QMovie

开发者 https://www.devze.com 2023-02-01 07:14 出处:网络
I\'m having problems with deploying an application on Windows that displays an animated gif. For this purpose I use a QMovie and it works fine if I launch it from QtCreator. I gathered the files that

I'm having problems with deploying an application on Windows that displays an animated gif. For this purpose I use a QMovie and it works fine if I launch it from QtCreator. I gathered the files that are needed to run the application, and I can launch it just fine开发者_开发百科, but the gif won't show up.

I read this page and came to the conclusion that I need to add the qgif4.dll plugin which is located in qt/bin/plugins/imageformats. I tried copying it into a plugins folder next to the application, also plugins/imageformats, but it still doesn't work. I also tried to

QApplication::addLibraryPath(QDir::currentPath());

and copy the qgif4.dll file next to my executable - without any success. How do I fix this?


Put it in ./imageformats, relative to the executable.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号