久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Qt中的GIF動畫

GIF animation in Qt(Qt中的GIF動畫)
本文介紹了Qt中的GIF動畫的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我使用了 QGraphicsViewQGraphicsScene 類來在這樣的小部件中顯示圖片:

I have used QGraphicsView, QGraphicsScene classes in order to show a picture in a widget like this:

m_Scene->addPixmap(QPixmap(fileName));
m_View->setScene(m_Scene);

如何在同一場景中顯示 .gif 動畫?

How I can show .gif animation in the same scene?

推薦答案

我不將 GIF 動畫與 QGraphicsViewQGraphicsScene 一起使用,我只在 中使用它>QDialog,但我認為這是相同的東西,所以這是我的代碼:

I don't use GIF animation with QGraphicsView or QGraphicsScene, I use it only in QDialog, but I think it's the same stuff, so here is my code:

QMovie *movie = new QMovie(":/images/other/images/16x16/loading.gif");
QLabel *processLabel = new QLabel(this);
processLabel->setMovie(movie);
movie->start();

我的 loading.gif 我取自 this 鏈接.

My loading.gif I took from this link.

PS:還可以查看 Qt SDK 中的示例.他們真的能幫上忙!

PS: also check the examples from Qt SDK. They are really can help!

這篇關于Qt中的GIF動畫的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How can I read and manipulate CSV file data in C++?(如何在 C++ 中讀取和操作 CSV 文件數據?)
In C++ why can#39;t I write a for() loop like this: for( int i = 1, double i2 = 0; (在 C++ 中,為什么我不能像這樣編寫 for() 循環: for( int i = 1, double i2 = 0;)
How does OpenMP handle nested loops?(OpenMP 如何處理嵌套循環?)
Reusing thread in loop c++(在循環 C++ 中重用線程)
Precise thread sleep needed. Max 1ms error(需要精確的線程睡眠.最大 1ms 誤差)
Is there ever a need for a quot;do {...} while ( )quot; loop?(是否需要“do {...} while ()?環形?)
主站蜘蛛池模板: 成人欧美激情 | 亚洲久久在线 | 日本一级大毛片a一 | 看一级黄色片 | 成人做爰69片免费 | 国产精品久久午夜夜伦鲁鲁 | 触手繁殖の地狱3d啪啪 | 黄色片网站免费 | 久久久久久黄色 | 麻豆一区二区三区四区 | 91久久 | 国产对白videos麻豆高潮 | 成人国产精品视频 | 日本黄色免费视频 | 欧美黄色片视频 | 天天视频国产 | 亚洲成a人片 | 午夜伦理福利 | 午夜精品福利视频 | av2014天堂网 | 欧美激情国产精品 | 久久综合久| 国产视频黄色 | 国产一级一片免费播放放a 国产黄色大片 | 中文字幕一二三四区 | 日本在线视频一区 | 亚洲免费精品 | 午夜精品久久久久久久久久久久 | 午夜精品一区二区三区在线视频 | 91色漫| 国产网址 | 蜜臀久久99精品久久久久久宅男 | 日韩在线播放视频 | 99视频| 久久精品国产视频 | 日韩伦理视频 | 一区在线观看视频 | 天天干夜夜| 成人福利视频在线观看 | 国产1级片 | 又色又爽又黄gif动态图 |