{"id":110158,"date":"2026-09-26T09:09:24","date_gmt":"2026-09-26T01:09:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/110158.html"},"modified":"2026-09-26T09:09:24","modified_gmt":"2026-09-26T01:09:24","slug":"qml-%e5%8a%a8%e7%94%bb%e9%80%89%e6%8b%a9%ef%bc%9agif%e4%b8%8elottie-%e7%9a%84%e5%8c%ba%e5%88%ab%ef%bc%8c%e4%bb%a5%e5%8f%8a-qt-6-8-%e4%b8%8e-6-11-%e7%9a%84-lottie-%e5%ae%9e%e7%8e%b0%e5%b7%ae%e5%bc%82","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/110158.html","title":{"rendered":"QML \u52a8\u753b\u9009\u62e9\uff1aGIF\u4e0eLottie \u7684\u533a\u522b\uff0c\u4ee5\u53ca Qt 6.8 \u4e0e 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02"},"content":{"rendered":"<\/p>\n<h4>\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>GIF \u4e0e Lottie \u7684\u533a\u522b<\/li>\n<li>Qt 6.8 \u4e0e Qt 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02<\/li>\n<li>\n<ul>\n<li>\u6a21\u5757\u7ed3\u6784&#xff1a;\u4ece\u4e00\u4f53\u63d2\u4ef6\u5230\u72ec\u7acb Qt \u6a21\u5757<\/li>\n<li>\u65e5\u5fd7\u5206\u7c7b\u6362\u540d\u662f\u4e2a\u9690\u5f62\u5347\u7ea7\u6210\u672c<\/li>\n<li>\u4e24\u6761\u6e32\u67d3\u8def\u7ebf<\/li>\n<li>\u4e24\u7248\u5171\u6709\u7684\u9650\u5236\u6e05\u5355<\/li>\n<li>\u4e00\u4e2a\u66f4\u9690\u853d\u7684\u5dee\u522b&#xff1a;\u9884\u5408\u6210\u5c42<\/li>\n<\/ul>\n<\/li>\n<li>\u5b9e\u6d4b&#xff1a;4 \u4e2a\u7d20\u6750\u5728\u4e24\u7248\u4e0b\u7684\u6e32\u67d3\u5dee\u5f02<\/li>\n<li>\n<ul>\n<li>\u5b98\u65b9\u63d0\u4f9b\u7684\u5224\u65ad\u624b\u6bb5<\/li>\n<\/ul>\n<\/li>\n<li>\u7ed3\u8bba<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u524d\u8a00<\/h3>\n<p>\u5728QML\u91cc\u5b9e\u73b0\u52a8\u6001\u56fe\u7684\u8def\u5f84\u6709\u4e24\u6761&#xff1a;GIF \u548c Lottie\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u5148\u628a\u4e24\u8005\u7684\u53d6\u820d\u505a\u4e00\u70b9\u8bf4\u660e&#xff0c;\u7136\u540e\u5bf9\u6bd4 Qt 6.8 \u4e0e Qt 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02\u2014\u2014\u540c\u4e00\u4efd Lottie \u7d20\u6750&#xff0c;\u5728\u8fd9\u4e24\u4e2a\u7248\u672c\u91cc\u53ef\u80fd\u753b\u51fa\u5b8c\u5168\u4e0d\u540c\u7684\u7ed3\u679c&#xff0c;\u8fd9\u4e00\u70b9\u4f1a\u76f4\u63a5\u51b3\u5b9a\u4f60\u7684\u5de5\u7a0b\u8be5\u7528\u54ea\u4e2a\u7248\u672c\u3002<\/p>\n<p>\u4ee5\u4e0b\u662fQt6.8.2\u4e2d\u8fd0\u884c\u7684\u6548\u679c&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260926010923-6ab71b4343ada.gif\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u53ea\u6709\u7b2c\u4e00\u5f20\u56fe\u57fa\u672c\u5c55\u793a\u4e86\u7d20\u6750\u7684\u52a8\u753b&#xff0c;\u7b2c\u4e8c\u5f20\u56fe\u5c31\u7f3a\u5c11\u5927\u91cf\u7684\u4fe1\u606f&#xff0c;\u7136\u540e\u7b2c\u4e09\u5f20\u548c\u7b2c\u56db\u5f20\u5c31\u6ca1\u6709\u52a8\u3002\u8fd9\u4e2a\u7248\u672c\u7684lottie\u5e93\u8fd8\u9700\u8981\u989d\u5916\u7f16\u8bd1&#xff0c;\u5f88\u591a\u7279\u6027\u4e0d\u652f\u6301&#xff0c;\u5bfc\u81f4\u4e86\u5f88\u591aJSON\u683c\u5f0f\u7684lottie\u52a8\u753b\u90fd\u6ca1\u6cd5\u9002\u7528\u3002<\/p>\n<p>\u4ee5\u4e0b\u662fQt6.11\u4e2d\u8fd0\u884c\u7684\u6548\u679c&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260926010923-6ab71b4363d98.gif\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6240\u6709\u7684\u56fe\u90fd\u80fd\u52a8&#xff0c;\u4f46\u662f\u7b2c\u4e09\u5f20\u56fe\u7684\u6c99\u6f0f\u4f4d\u7f6e\u6709\u70b9\u5f02\u5e38&#xff0c;\u6211\u8ba9AI\u5e2e\u6211\u4fee\u590d\u4e86\u4e00\u4e0b&#xff08;\u56fe\u4e2d\u5c55\u793a\u7684\u662f\u4fee\u590d\u540e\u7684JSON\u6587\u4ef6&#xff09;\u3002<\/p>\n<p>\u672c\u6587\u662f QML Lottie \u7cfb\u5217\u7b2c 1 \u7bc7&#xff0c;\u5171 3 \u7bc7\u3002 \u6587\u4e2d\u7684\u7d20\u6750\u6765\u81ea&#xff1a;https:\/\/lottiefiles.com\/<\/p>\n<hr \/>\n<h3>GIF \u4e0e Lottie \u7684\u533a\u522b<\/h3>\n<p>GIF \u7684\u672c\u8d28\u662f\u9010\u5e27\u4f4d\u56fe&#xff1a;\u6bcf\u4e00\u5e27\u90fd\u662f\u4e00\u5f20 8 \u4f4d\u7d22\u5f15\u8272\u7684\u56fe\u7247&#xff0c;\u9760 LZW \u538b\u7f29\u4e32\u8d77\u6765\u3002<\/p>\n<p>Lottie \u7684\u672c\u8d28\u662f\u77e2\u91cf\u56fe\u5f62\u52a0\u5173\u952e\u5e27\u52a8\u753b\u7684 JSON \u63cf\u8ff0&#xff1a;\u4e00\u4e2a\u5706\u3001\u4e00\u6761\u8def\u5f84\u3001\u4e00\u6b21\u65cb\u8f6c\u90fd\u5e26\u5173\u952e\u5e27&#xff0c;\u64ad\u653e\u65f6\u7531\u6e32\u67d3\u5668\u5b9e\u65f6\u753b\u51fa\u6765\u3002\u5b83\u6765\u81ea Adobe After Effects \u7684 Bodymovin \u63d2\u4ef6\u5bfc\u51fa\u3002<\/p>\n<p>\u5177\u4f53\u5dee\u5f02\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u7ef4\u5ea6GIFLottie<\/tr>\n<tbody>\n<tr>\n<td>\u6570\u636e\u672c\u8d28<\/td>\n<td>\u9010\u5e27\u4f4d\u56fe&#xff08;LZW \u538b\u7f29&#xff09;<\/td>\n<td>\u77e2\u91cf\u56fe\u5f62 &#043; \u5173\u952e\u5e27\u7684 JSON<\/td>\n<\/tr>\n<tr>\n<td>\u989c\u8272<\/td>\n<td>\u5355\u5e27\u6700\u591a 256 \u8272<\/td>\n<td>32 \u4f4d\u771f\u5f69&#xff0c;\u652f\u6301\u6e10\u53d8<\/td>\n<\/tr>\n<tr>\n<td>\u900f\u660e\u5ea6<\/td>\n<td>\u53ea\u6709 1 \u4f4d&#xff08;\u5168\u900f\u660e \/ \u5168\u4e0d\u900f\u660e&#xff09;&#xff0c;\u8fb9\u7f18\u5fc5\u5e26\u952f\u9f7f<\/td>\n<td>\u5b8c\u6574 alpha \u901a\u9053&#xff0c;\u534a\u900f\u660e\u4e0e\u67d4\u548c\u8fb9\u7f18<\/td>\n<\/tr>\n<tr>\n<td>\u7f29\u653e<\/td>\n<td>\u4f4d\u56fe&#xff0c;\u653e\u5927\u6a21\u7cca<\/td>\n<td>\u77e2\u91cf&#xff0c;\u7b49\u6bd4\u7f29\u653e<\/td>\n<\/tr>\n<tr>\n<td>\u4f53\u79ef<\/td>\n<td>\u4e0e\u753b\u5e45\u3001\u65f6\u957f\u5f3a\u76f8\u5173&#xff0c;\u51e0\u767e KB \u5230\u6570 MB<\/td>\n<td>\u540c\u753b\u5e45\u901a\u5e38 10~100 KB \u91cf\u7ea7<\/td>\n<\/tr>\n<tr>\n<td>\u8fd0\u884c\u65f6\u63a7\u5236<\/td>\n<td>\u53ea\u80fd\u6574\u4f53\u64ad \/ \u505c<\/td>\n<td>\u53ef\u6307\u5b9a\u5e27\u3001\u65b9\u5411\u3001\u5faa\u73af\u6b21\u6570\u3001\u9010\u5e27\u62d6\u62fd<\/td>\n<\/tr>\n<tr>\n<td>\u5355\u5e27\u5bfb\u5740<\/td>\n<td>\u6709&#xff0c;currentFrame \u53ef\u8bfb\u53ef\u5199<\/td>\n<td>\u6709&#xff0c;gotoAndStop(frame)<\/td>\n<\/tr>\n<tr>\n<td>\u6e32\u67d3\u5f00\u9500<\/td>\n<td>\u6bcf\u5e27\u89e3\u7801\u4f4d\u56fe&#xff0c;\u5185\u5b58 \u2248 \u5e27\u6570 \u00d7 \u753b\u5e45<\/td>\n<td>\u5b9e\u65f6\u5149\u6805\u5316&#xff0c;\u5f00\u9500\u4e0e\u7d20\u6750\u56fa\u6709\u5c3a\u5bf8\u76f8\u5173<\/td>\n<\/tr>\n<tr>\n<td>\u4e8c\u6b21\u7f16\u8f91<\/td>\n<td>\u53ea\u80fd\u91cd\u65b0\u5bfc\u51fa<\/td>\n<td>JSON \u53ef\u6539&#xff0c;\u4e5f\u80fd\u811a\u672c\u6279\u91cf\u6539<\/td>\n<\/tr>\n<tr>\n<td>Qt \u91cc\u7684\u7c7b\u578b<\/td>\n<td>AnimatedImage&#xff08;\u4f9d\u8d56 qgif.dll \u56fe\u7247\u63d2\u4ef6&#xff09;<\/td>\n<td>LottieAnimation&#xff08;Qt.labs.lottieqt&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Qt 6.8 \u548c 6.11 \u90fd\u81ea\u5e26 qgif.dll&#xff0c;\u6240\u4ee5 AnimatedImage \u76f4\u63a5\u653e GIF \u5c31\u80fd\u52a8&#xff1a;<\/p>\n<p>import QtQuick<\/p>\n<p>AnimatedImage {<br \/>\n    source: &#034;loop.gif&#034;<br \/>\n    playing: true<br \/>\n    fillMode: Image.PreserveAspectFit<br \/>\n}<\/p>\n<p>AnimatedImage \u7684\u63a5\u53e3\u5c31\u4e09\u4e2a\u5173\u952e\u70b9&#xff1a;playing \u63a7\u5236\u64ad\u505c\u3001currentFrame \u80fd\u8bfb\u80fd\u5199\u3001frameCount \u62ff\u603b\u5e27\u6570\u3002\u60f3\u505a\u300c\u62d6\u62fd\u5230\u7b2c 5 \u5e27\u300d\u4e5f\u80fd\u505a&#xff0c;\u4f46 GIF \u7684\u5e27\u662f\u6574\u5f20\u4f4d\u56fe&#xff0c;\u62d6\u62fd\u770b\u5230\u7684\u4ecd\u7136\u662f 8 \u4f4d\u8272\u7684\u952f\u9f7f\u8fb9\u7f18\u3002<\/p>\n<p>Lottie \u7684\u63a5\u53e3\u4e30\u5bcc\u5f97\u591a&#xff0c;\u8fd9\u662f\u5b83\u771f\u6b63\u7684\u4ef7\u503c\u6240\u5728&#xff1a;<\/p>\n<p>import Qt.labs.lottieqt<\/p>\n<p>LottieAnimation {<br \/>\n    source: &#034;animation.json&#034;<br \/>\n    autoPlay: false<br \/>\n    loops: LottieAnimation.Infinite<br \/>\n    quality: LottieAnimation.MediumQuality<br \/>\n    direction: LottieAnimation.Forward<\/p>\n<p>    onStatusChanged: {<br \/>\n        if (status &#061;&#061;&#061; LottieAnimation.Ready)<br \/>\n            gotoAndPlay(startFrame)<br \/>\n    }<br \/>\n}<\/p>\n<p>\u4e00\u6b21 gotoAndStop(87) \u5c31\u80fd\u7cbe\u786e\u505c\u5728\u4efb\u610f\u4e00\u5e27&#xff0c;direction \u4e00\u6539\u52a8\u753b\u5c31\u5012\u653e&#xff0c;loops \u6362\u4e2a\u6570\u5b57\u5c31\u6362\u5faa\u73af\u6b21\u6570\u2014\u2014\u8fd9\u4e9b GIF \u90fd\u505a\u4e0d\u5230\u3002<\/p>\n<p>\u9009\u578b\u4e0a\u6bd4\u8f83\u5b9e\u7528\u7684\u5224\u65ad&#xff1a;<\/p>\n<ul>\n<li>\u7b80\u5355\u7684\u65e0\u9650\u5faa\u73af\u88c5\u9970\u56fe&#xff0c;\u753b\u5e45\u5c0f\u3001\u989c\u8272\u5c11\u3001\u4e0d\u9700\u8981\u63a7\u5236 \u2192 GIF \u591f\u7528&#xff0c;\u5207\u56fe\u65b9\u4fbf\u3002<\/li>\n<li>\u9700\u8981\u534a\u900f\u660e\u3001\u6e10\u53d8\u3001\u653e\u5927\u4e0d\u7cca\u3001\u6307\u5b9a\u5e27 \/ \u65b9\u5411 \/ \u5faa\u73af&#xff0c;\u6216\u8005\u6587\u4ef6\u8981\u7626 \u2192 Lottie \u66f4\u5408\u9002\u3002<\/li>\n<li>\u7d20\u6750\u91cc\u7528\u4e86 Lottie \u89c4\u8303\u91cc\u76f8\u5bf9\u51b7\u95e8\u7684\u80fd\u529b&#xff08;\u9884\u5408\u6210\u5c42\u3001\u77e2\u91cf\u906e\u7f69\u3001Merge Paths\u3001\u6e10\u53d8\u63cf\u8fb9\u3001\u5d4c\u5957 Repeater\u3001\u8868\u8fbe\u5f0f&#xff09;\u2192 \u5148\u522b\u6025\u7740\u4e0a Lottie&#xff0c;\u8fd9\u4e9b\u5728 Qt \u8fd9\u8fb9\u672a\u5fc5\u88ab\u652f\u6301&#xff0c;\u800c\u4e14\u51fa\u95ee\u9898\u65f6\u4e0d\u62a5\u9519&#xff0c;\u53ea\u662f\u753b\u5f97\u4e0d\u5bf9\u3002\u4e0b\u9762\u7b2c 2 \u8282\u548c\u7b2c 3 \u7bc7\u4f1a\u5177\u4f53\u5c55\u5f00\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>Qt 6.8 \u4e0e Qt 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02<\/h3>\n<p>\u4e24\u7248\u7684\u5bfc\u5165\u8bed\u53e5\u5b8c\u5168\u4e00\u6837&#xff1a;<\/p>\n<p>import Qt.labs.lottieqt<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4\u5347\u7ea7 Qt \u65f6 QML \u4ee3\u7801\u4e00\u4e2a\u5b57\u90fd\u4e0d\u7528\u6539\u3002\u4f46\u5f15\u64ce\u6362\u4e86&#xff0c;\u6362\u5f97\u8fd8\u633a\u5f7b\u5e95\u3002<\/p>\n<h4>\u6a21\u5757\u7ed3\u6784&#xff1a;\u4ece\u4e00\u4f53\u63d2\u4ef6\u5230\u72ec\u7acb Qt \u6a21\u5757<\/h4>\n<p>\u5bf9\u6bd4\u4e24\u7248 Qt \u5b89\u88c5\u76ee\u5f55\u91cc\u7684\u4e1c\u897f&#xff1a;<\/p>\n<table>\n<tr>Qt 6.8.2Qt 6.11.1<\/tr>\n<tbody>\n<tr>\n<td>QML \u6a21\u5757\u540d<\/td>\n<td>Qt.labs.lottieqt<\/td>\n<td>\u540c<\/td>\n<\/tr>\n<tr>\n<td>QML \u63d2\u4ef6<\/td>\n<td>lottieqtplugin.dll<\/td>\n<td>lottieplugin.dll<\/td>\n<\/tr>\n<tr>\n<td>\u5b9e\u9645\u5b9e\u73b0<\/td>\n<td>\u63d2\u4ef6\u81ea\u8eab&#xff08;Bodymovin &#043; QPainter &#xff09;<\/td>\n<td>Qt6Lottie.dll\u72ec\u7acb\u6a21\u5757&#xff0c;\u53e6\u6709 Qt6LottieVectorImageGenerator.dll\u3001Qt6LottieVectorImageHelpers.dll<\/td>\n<\/tr>\n<tr>\n<td>\u5bf9\u5916 C&#043;&#043; \u6a21\u5757<\/td>\n<td>\u65e0<\/td>\n<td>QtLottie\u3001QtLottieVectorImageGenerator\u3001QtLottieVectorImageHelpers<\/td>\n<\/tr>\n<tr>\n<td>\u77e2\u91cf\u6e32\u67d3\u8def\u7ebf<\/td>\n<td>\u65e0<\/td>\n<td>lottietoqml \u547d\u4ee4\u884c\u3001qt_target_qml_from_lottie() CMake \u547d\u4ee4\u3001VectorImage \u8fd0\u884c\u65f6\u52a0\u8f7d<\/td>\n<\/tr>\n<tr>\n<td>\u5e27\u7f13\u5b58\u8c03\u8282<\/td>\n<td>\u65e0<\/td>\n<td>QLOTTIE_RENDER_CACHE_SIZE \u73af\u5883\u53d8\u91cf&#xff08;\u9ed8\u8ba4 2&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>6.8 \u7684 290 KB \u63d2\u4ef6\u91cc\u585e\u7740\u89e3\u6790\u5668\u548c\u6e32\u67d3\u5668&#xff0c;6.11 \u7684\u63d2\u4ef6\u53ea\u5269 31 KB&#xff0c;\u5b9e\u73b0\u653e\u5230\u4e86 Qt6Lottie.dll\u3002Qt 6.11 \u7684 LottieAnimation \u7c7b\u578b\u539f\u578b\u4ecd\u7136\u662f QQuickPaintedItem&#xff0c;\u4f46\u591a\u51fa\u4e86\u4e00\u6574\u5957\u8f6c\u6210 Qt Quick \u573a\u666f\u7684\u80fd\u529b\u3002<\/p>\n<h4>\u65e5\u5fd7\u5206\u7c7b\u6362\u540d\u662f\u4e2a\u9690\u5f62\u5347\u7ea7\u6210\u672c<\/h4>\n<p>\u5982\u679c\u4f60\u50cf\u6211\u4e00\u6837&#xff0c;\u7528\u300c\u6570\u7ed8\u5236\u5e27\u300d\u7684\u65b9\u5f0f\u505a\u81ea\u52a8\u5316\u9a8c\u8bc1&#xff1a;<\/p>\n<p><span class=\"token variable\">$env<\/span>:QT_LOGGING_RULES &#061; <span class=\"token string\">&#034;qt.lottieqt.bodymovin.render&#061;true&#034;<\/span><\/p>\n<p>\u8fd9\u6761\u5728 6.11 \u4e0b\u4f1a\u4e00\u884c\u65e5\u5fd7\u90fd\u62ff\u4e0d\u5230\u3002\u5b9e\u6d4b\u628a qt.lottieqt.* \u5168\u6253\u5f00&#xff0c;6.11 \u4e0b\u51fa\u73b0\u7684\u5206\u7c7b\u662f&#xff1a;<\/p>\n<p>qt.lottieqt.lottie.render          \u2190 \u7ed8\u5236\u5e27\u5728\u8fd9\u91cc<br \/>\nqt.lottieqt.lottie.render.thread<br \/>\nqt.lottieqt.lottie.parser<br \/>\nqt.lottieqt.lottie.update<\/p>\n<p>bodymovin \u8fd9\u4e2a\u540d\u5b57\u5728 6.11 \u91cc\u547d\u4e2d 0 \u884c\u3002\u6d88\u606f\u4f53\u5012\u662f\u6ca1\u53d8&#xff0c;\u8fd8\u662f Start to paint frame N&#xff0c;\u53ea\u662f\u524d\u9762\u591a\u4e86\u4e00\u4e32\u5bf9\u8c61\u5730\u5740\u3002\u6539\u4e00\u4e2a QT_LOGGING_RULES \u5c31\u80fd\u6062\u590d&#xff0c;\u4f46\u4e0d\u77e5\u9053\u8fd9\u4ef6\u4e8b\u7684\u8bdd\u5f88\u5bb9\u6613\u8bef\u5224\u6210\u300c6.11 \u6293\u4e0d\u5230\u6e32\u67d3\u65e5\u5fd7\u300d\u3002<\/p>\n<hr \/>\n<h4>\u4e24\u6761\u6e32\u67d3\u8def\u7ebf<\/h4>\n<p>6.11 \u8d77&#xff0c;\u6e32\u67d3 Lottie \u6709\u4e24\u79cd\u505a\u6cd5\u3002<\/p>\n<p>\u7b2c\u4e00\u79cd\u662f LottieAnimation&#xff08;\u4e24\u7248\u90fd\u6709&#xff09;&#xff1a;\u7528 QPainter \u6e32\u67d3\u5230\u4e2d\u95f4\u7f13\u51b2\u3002\u5b98\u65b9\u6587\u6863\u7684\u8bf4\u6cd5\u662f\u300c\u8fd9\u53ef\u80fd\u5bf9\u63d2\u56fe\u7684\u5c3a\u5bf8\u4e0a\u9650\u548c\u76ee\u6807\u786c\u4ef6\u5e26\u6765\u4e00\u4e9b\u6027\u80fd\u9650\u5236\u300d\u3002\u8981\u6ce8\u610f\u4e00\u4e2a\u53cd\u76f4\u89c9\u7684\u70b9&#xff1a;\u5b83\u7684\u5f00\u9500\u6b63\u6bd4\u4e8e\u7d20\u6750\u56fa\u6709\u5c3a\u5bf8&#xff0c;\u800c\u4e0d\u662f\u663e\u793a\u5c3a\u5bf8\u2014\u2014\u628a 1200\u00d71200 \u7684\u7d20\u6750\u7f29\u5230 177 px \u663e\u793a&#xff0c;\u6bcf\u5e27\u4ecd\u7136\u8981\u5149\u6805\u5316 1200\u00b2\u3002<\/p>\n<p>\u7b2c\u4e8c\u79cd\u662f lottietoqml&#xff08;6.11 \u65b0\u589e&#xff09;&#xff1a;\u628a Lottie \u8f6c\u6210\u7528 Qt Quick&#xff08;Shape \u7b49&#xff09;\u63cf\u8ff0\u7684 QML \u573a\u666f&#xff0c;\u8d70\u786c\u4ef6\u52a0\u901f\u7684 Scene Graph\u3002\u5b98\u65b9\u539f\u8bdd\u662f\u6e32\u67d3\u53ef\u80fd\u66f4\u5feb\u3001\u66f4\u7701 CPU&#xff0c;\u800c\u4e14 Qt Quick \u652f\u6301\u53ef\u7f29\u653e\u77e2\u91cf&#xff0c;\u8f6c\u51fa\u6765\u7684 item \u80fd\u5e73\u6ed1\u7f29\u653e\u3002\u547d\u4ee4\u884c\u76f4\u63a5\u8f6c&#xff1a;<\/p>\n<p>lottietoqml input.json output.qml<\/p>\n<p>\u4e5f\u53ef\u4ee5\u6302\u8fdb CMake&#xff0c;\u7f16\u8bd1\u671f\u5c31\u8f6c\u597d&#xff1a;<\/p>\n<p>find_package(Qt6 REQUIRED COMPONENTS LottieTools)<\/p>\n<p>qt_target_qml_from_lottie(myapp<br \/>\n    CURVE_RENDERER<br \/>\n    OPTIMIZE_PATHS<br \/>\n    FILES   original\/fingerprint.json<br \/>\n    OUTPUTS generated\/Fingerprint.qml<br \/>\n)<\/p>\n<p>\u53e6\u5916 6.11 \u7684 VectorImage \u652f\u6301\u5728\u8fd0\u884c\u65f6\u76f4\u63a5\u52a0\u8f7d Lottie&#xff1a;<\/p>\n<p>import QtQuick.VectorImage<\/p>\n<p>VectorImage {<br \/>\n    source: &#034;animation.json&#034;<br \/>\n}<\/p>\n<p>\u914d\u5957\u7684 Qt.labs.lottieqt.VectorImageHelpers \u6a21\u5757&#xff08;LayerItem \u7c7b\u578b&#xff0c;\u63d0\u4f9b\u7ec4\u5408\u4e86\u6574\u6761\u7956\u5148\u94fe\u7684 transformMatrix&#xff09;\u662f\u7ed9\u8fd9\u4e9b\u751f\u6210\u4ee3\u7801\u7528\u7684&#xff0c;\u5b98\u65b9\u660e\u786e\u8bf4\u300c\u4e0d\u6253\u7b97\u5f53\u4f5c\u901a\u7528\u7ec4\u4ef6\u4f7f\u7528\u300d&#xff0c;\u6240\u4ee5\u5e73\u65f6\u4e0d\u7528\u78b0\u5b83\u3002<\/p>\n<h4>\u4e24\u7248\u5171\u6709\u7684\u9650\u5236\u6e05\u5355<\/h4>\n<p>\u8fd9\u90e8\u5206\u5f88\u91cd\u8981&#xff0c;\u5b83\u89e3\u91ca\u4e86\u4e3a\u4ec0\u4e48\u6709\u4e9b\u7d20\u6750\u300c\u80fd\u8dd1\u4f46\u770b\u7740\u4e0d\u5bf9\u300d\u3002\u5b98\u65b9\u9650\u5236\u6e05\u5355\u5728\u4e24\u7248\u91cc\u90fd\u5b58\u5728&#xff1a;<\/p>\n<table>\n<tr>\u7c7b\u522b\u4e0d\u652f\u6301\u7684\u9879<\/tr>\n<tbody>\n<tr>\n<td>\u901a\u7528<\/td>\n<td align=\"left\">\u8868\u8fbe\u5f0f&#xff1b;\u65f6\u95f4\u8f74\u53ea\u652f\u6301\u5e27\u6a21\u5f0f&#xff0c;\u4e0d\u652f\u6301\u65f6\u95f4\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>\u52a8\u753b\u7ea7<\/td>\n<td align=\"left\">assets&#xff08;\u53ef\u590d\u7528\u7684\u6587\u5b57\u4e0e\u56fe\u7247&#xff09;\u3001chars \u6587\u5b57<\/td>\n<\/tr>\n<tr>\n<td>\u56fe\u5c42<\/td>\n<td align=\"left\">ao \u81ea\u52a8\u5b9a\u5411\u3001bm \u6df7\u5408\u6a21\u5f0f\u3001maskProperties \u77e2\u91cf\u906e\u7f69\u3001sr \u65f6\u95f4\u62c9\u4f38<\/td>\n<\/tr>\n<tr>\n<td>\u5f62\u72b6<\/td>\n<td align=\"left\">gstroke \u6e10\u53d8\u63cf\u8fb9\u3001\u5d4c\u5957 Repeater&#xff1b;\u591a\u6761 trim path \u540c\u65f6\u751f\u6548\u65f6\u884c\u4e3a\u4e0d\u53ef\u9884\u671f<\/td>\n<\/tr>\n<tr>\n<td>\u6548\u679c<\/td>\n<td align=\"left\">\u53ea\u652f\u6301 Slide \u4e0e Layer Fill<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u4e00\u4e2a\u66f4\u9690\u853d\u7684\u5dee\u522b&#xff1a;\u9884\u5408\u6210\u5c42<\/h4>\n<p>\u4e0a\u9762\u7684\u6e05\u5355\u91cc\u6ca1\u6709\u300c\u9884\u5408\u6210\u5c42&#xff08;precomp&#xff09;\u300d&#xff0c;\u4f46\u5b9e\u6d4b\u4e0b\u6765&#xff0c;\u8fd9\u662f\u4e24\u7248\u5dee\u522b\u6700\u5927\u7684\u5730\u65b9\u3002<\/p>\n<p>Lottie \u91cc ty: 0 \u7684\u56fe\u5c42\u662f\u9884\u5408\u6210\u5c42&#xff0c;\u5b83\u5f15\u7528 assets \u91cc\u7684\u53e6\u4e00\u5957\u56fe\u5c42&#xff0c;\u76f8\u5f53\u4e8e\u300c\u628a\u4e00\u6bb5\u52a8\u753b\u5f53\u6210\u4e00\u4e2a\u6574\u4f53\u5f15\u7528\u8fdb\u6765\u300d\u30026.8 \u7684\u89e3\u6790\u5668\u53ea\u8ba4\u4e24\u79cd\u56fe\u5c42\u7c7b\u578b&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ qt 6.8.2  src\/qtlottie\/src\/bodymovin\/bmlayer.cpp<\/span><br \/>\nBMLayer <span class=\"token operator\">*<\/span><span class=\"token class-name\">BMLayer<\/span><span class=\"token double-colon punctuation\">::<\/span><span class=\"token function\">construct<\/span><span class=\"token punctuation\">(<\/span>QJsonObject definition<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">const<\/span> QVersionNumber <span class=\"token operator\">&amp;<\/span>version<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    BMLayer <span class=\"token operator\">*<\/span>layer <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">nullptr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> type <span class=\"token operator\">&#061;<\/span> definition<span class=\"token punctuation\">.<\/span><span class=\"token function\">value<\/span><span class=\"token punctuation\">(<\/span><span class=\"token function\">QLatin1String<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;ty&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">toInt<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">switch<\/span> <span class=\"token punctuation\">(<\/span>type<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">case<\/span> <span class=\"token number\">2<\/span><span class=\"token operator\">:<\/span><br \/>\n        layer <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token function\">BMImageLayer<\/span><span class=\"token punctuation\">(<\/span>definition<span class=\"token punctuation\">,<\/span> version<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/ \u56fe\u7247\u5c42<\/span><br \/>\n        <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">case<\/span> <span class=\"token number\">4<\/span><span class=\"token operator\">:<\/span><br \/>\n        layer <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token function\">BMShapeLayer<\/span><span class=\"token punctuation\">(<\/span>definition<span class=\"token punctuation\">,<\/span> version<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/ \u5f62\u72b6\u5c42<\/span><br \/>\n        <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">default<\/span><span class=\"token operator\">:<\/span><br \/>\n        <span class=\"token function\">qCWarning<\/span><span class=\"token punctuation\">(<\/span>lcLottieQtBodymovinParser<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034;Unsupported layer type:&#034;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> type<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> layer<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>ty &#061; 0&#xff08;\u9884\u5408\u6210&#xff09;\u3001ty &#061; 3&#xff08;\u7a7a\u5bf9\u8c61&#xff09;\u3001ty &#061; 5&#xff08;\u6587\u5b57&#xff09;\u5168\u843d\u8fdb default \u5206\u652f&#xff0c;\u8fd4\u56de nullptr&#xff0c;\u6574\u5c42\u88ab\u4e22\u5f03&#xff0c;\u4e5f\u4e0d\u4f1a\u9012\u5f52\u5c55\u5f00\u5b83\u5f15\u7528\u7684\u5b50\u5408\u6210\u3002\u8fd0\u884c\u65f6\u4f1a\u770b\u5230\u8fd9\u6837\u7684\u8b66\u544a&#xff1a;<\/p>\n<p>qt.lottieqt.bodymovin.parser: Unsupported layer type: 0<\/p>\n<p>6.11 \u91cd\u5199\u540e\u7684\u89e3\u6790\u5668\u5904\u7406\u4e86\u9884\u5408\u6210\u5c42&#xff0c;\u540c\u4e00\u4efd\u7d20\u6750\u4e0d\u518d\u6709\u8fd9\u6761\u8b66\u544a&#xff0c;\u6e32\u67d3\u7ed3\u679c\u4e5f\u8865\u5168\u4e86\u3002\u8fd9\u4e00\u70b9\u5728\u672c\u7bc7\u6700\u540e\u7684\u5b9e\u6d4b\u91cc\u6709\u76f4\u63a5\u4f53\u73b0\u3002<\/p>\n<p>\u987a\u5e26\u4e00\u63d0&#xff0c;6.11 \u7684 LottieAnimation \u6587\u6863\u91cc\u4ecd\u7136\u5199\u7740\u300c\u53ea\u652f\u6301 Shape \u5c42\u300d&#xff0c;\u4e0e\u5b9e\u6d4b\u4e0d\u7b26\u2014\u2014\u6587\u6863\u6ca1\u8ddf\u4e0a\u91cd\u5199\u3002\u4ee5\u5b9e\u6d4b\u4e3a\u51c6\u3002<\/p>\n<hr \/>\n<h3>\u5b9e\u6d4b&#xff1a;4 \u4e2a\u7d20\u6750\u5728\u4e24\u7248\u4e0b\u7684\u6e32\u67d3\u5dee\u5f02<\/h3>\n<p>\u5149\u770b\u6587\u6863\u4e0d\u591f&#xff0c;\u6211\u5b9e\u9645\u8dd1\u4e86\u4e00\u904d\u5bf9\u7167\u3002<\/p>\n<p>\u65b9\u6cd5\u662f\u4e0d\u7528\u7f16\u8bd1&#xff0c;\u76f4\u63a5\u7528\u4e24\u7248\u81ea\u5e26\u7684 qml.exe \u8dd1\u63a2\u9488 QML&#xff1a;autoPlay: false&#xff0c;\u5728 onStatusChanged(Ready) \u91cc gotoAndStop(\u56fa\u5b9a\u5e27)&#xff0c;\u518d\u7528 grabToImage() \u6293\u56fe&#xff0c;\u6700\u540e\u9010\u50cf\u7d20\u7edf\u8ba1\u300c\u4e0d\u900f\u660e\u50cf\u7d20\u6570\u300d\u548c\u300c\u5305\u56f4\u76d2\u300d\u3002\u56fa\u5b9a\u5e27\u662f\u4e3a\u4e86\u907f\u514d\u64ad\u653e\u8fdb\u5ea6\u4e0d\u540c\u5e26\u6765\u7684\u5e72\u6270\u3002<\/p>\n<p>\u7ed3\u679c&#xff08;\u753b\u5e03 640&#xff0c;\u7d20\u6750\u6309 560 \u7b49\u6bd4\u7f29\u653e\u540e\u6bd4\u5bf9&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u7d20\u6750 &#064;\u56fa\u5b9a\u5e27Qt 6.8.2 \u4e0d\u900f\u660e\u50cf\u7d20 \/ \u5305\u56f4\u76d2Qt 6.11.1 \u4e0d\u900f\u660e\u50cf\u7d20 \/ \u5305\u56f4\u76d2\u7ed3\u8bba<\/tr>\n<tbody>\n<tr>\n<td>success &#064;40<\/td>\n<td>19183 \/ (108, 96, 495, 483)<\/td>\n<td>19183 \/ (108, 96, 495, 483)<\/td>\n<td>\u5b8c\u5168\u4e00\u81f4&#xff0c;\u8fde PNG \u5b57\u8282\u6570\u90fd\u4e00\u6837<\/td>\n<\/tr>\n<tr>\n<td>document-ocr-scan &#064;120<\/td>\n<td>2680 \/ (150, 187, 449, 195)<\/td>\n<td>78843 \/ (150, 145, 449, 464)<\/td>\n<td>6.8 \u53ea\u753b\u51fa\u4e00\u6761 8 px \u9ad8\u7684\u7ebf<\/td>\n<\/tr>\n<tr>\n<td>loading-sand-clock &#064;25<\/td>\n<td>370046 \/ (294, 117, 785, 1079)<\/td>\n<td>237171 \/ (294, 117, 785, 1063)<\/td>\n<td>6.8 \u6ea2\u51fa\u66f4\u4e25\u91cd&#xff0c;\u5df2\u8d34\u5230\u753b\u5e03\u5e95\u8fb9<\/td>\n<\/tr>\n<tr>\n<td>delete-bin &#064;20<\/td>\n<td>79616 \/ (462, 589, 768, 947)<\/td>\n<td>118197 \/ (199, 156, 782, 947)<\/td>\n<td>6.11 \u5de6\u4e0a\u65b9\u591a\u51fa\u4e00\u5927\u7247\u5185\u5bb9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p align=\"center\"> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260926010923-6ab71b4343ada.gif\" width=\"49%\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260926010923-6ab71b4363d98.gif\" width=\"49%\" \/> <\/p>\n<p>\u5bf9\u7740\u8fd9\u5f20\u5bf9\u7167\u56fe\u770b\u66f4\u76f4\u89c2&#xff08;\u5de6\u8fb9\u662f 6.8&#xff0c;\u53f3\u8fb9\u662f 6.11&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u7b2c\u4e00\u5f20success\u52a8\u753b&#xff0c;\u4e00\u6a21\u4e00\u6837\u3002<\/li>\n<li>\u7b2c\u4e8c\u5f20\u6587\u6863\u626b\u63cf\u52a8\u753b&#xff0c;6.8 \u53ea\u5269\u4e00\u6761\u6a2a\u7ebf&#xff0c;6.11 \u624d\u662f\u5b8c\u6574\u7684&#xff0c;\u5dee\u522b\u6765\u81ea\u9884\u5408\u6210\u5c42\u88ab\u4e22\u5f03\u3002<\/li>\n<li>\u7b2c\u4e09\u5f20\u6c99\u6f0f\u52a8\u753b&#xff0c;6.8 \u4e00\u584c\u7cca\u6d82&#xff0c;\u52a8\u753b\u5931\u6548&#xff1b;6.11 \u57fa\u672c\u6b63\u786e&#xff0c;\u4f46\u6c99\u4ecd\u7136\u6f0f\u5230\u6f0f\u6597\u4e0b\u65b9&#xff08;\u56fe\u4e2d\u662fAI\u4fee\u590d\u540e\u7684\u6548\u679c&#xff09;\u3002<\/li>\n<li>\u7b2c\u56db\u5f20\u662f\u5220\u9664\u6587\u4ef6\u7684\u52a8\u753b&#xff0c;6.8 \u91cc\u7684\u52a8\u753b\u5931\u6548&#xff1b;6.11 \u5219\u8fd0\u884c\u6b63\u5e38\u3002<\/li>\n<\/ul>\n<h4>\u5b98\u65b9\u63d0\u4f9b\u7684\u5224\u65ad\u624b\u6bb5<\/h4>\n<p>6.11 \u7684\u6587\u6863\u91cc\u7ed9\u4e86\u4e00\u6761\u5f88\u5b9e\u7528\u7684\u5efa\u8bae&#xff1a;\u628a\u65e5\u5fd7\u5206\u7c7b\u6253\u5f00\u89c2\u5bdf\u5e27\u7f13\u5b58\u3002\u5982\u679c\u7f13\u5b58\u957f\u671f\u662f\u6ee1\u7684&#xff0c;\u8bf4\u660e\u52a8\u753b\u592a\u590d\u6742\u3001\u6e32\u67d3\u8ddf\u4e0d\u4e0a&#xff0c;\u5e94\u8be5\u7b80\u5316\u52a8\u753b\u6216\u4f18\u5316 QML \u573a\u666f\u3002<\/p>\n<p><span class=\"token variable\">$env<\/span>:QT_LOGGING_RULES &#061; <span class=\"token string\">&#034;qt.lottieqt.lottie.render&#061;true;qt.lottieqt.lottie.render.thread&#061;true&#034;<\/span><\/p>\n<p>\u5e27\u7f13\u5b58\u7684\u5bb9\u91cf\u7528 QLOTTIE_RENDER_CACHE_SIZE \u8c03&#xff08;\u9ed8\u8ba4 2&#xff09;&#xff0c;\u7d20\u6750\u590d\u6742\u65f6\u53ef\u4ee5\u9002\u5f53\u52a0\u5927&#xff0c;\u4ee3\u4ef7\u662f\u5185\u5b58\u3002<\/p>\n<h3>\u7ed3\u8bba<\/h3>\n<ul>\n<li>\u65b0\u5de5\u7a0b\u76f4\u63a5\u7528 Qt 6.11\u3002\u9884\u5408\u6210\u5c42\u80fd\u6b63\u5e38\u5c55\u5f00&#xff0c;\u65e5\u5fd7\u5206\u7c7b\u66f4\u6e05\u6670&#xff0c;\u8fd8\u591a\u4e86 lottietoqml \u8fd9\u6761\u786c\u4ef6\u52a0\u901f\u7684\u77e2\u91cf\u8def\u7ebf\u3002<\/li>\n<li>\u8001\u5de5\u7a0b\u5347\u7ea7\u5230 6.11&#xff0c;QML \u4ee3\u7801\u4e0d\u7528\u6539&#xff0c;\u4f46\u8981\u987a\u624b\u6539\u4e24\u5904&#xff1a;\u9a8c\u8bc1\u811a\u672c\u91cc\u7684\u65e5\u5fd7\u5206\u7c7b\u540d&#xff0c;\u4ee5\u53ca\u5982\u679c\u7d20\u6750\u91cc\u7528\u4e86\u9884\u5408\u6210\u5c42&#xff0c;\u5347\u7ea7\u540e\u89c2\u611f\u4f1a\u53d8&#xff08;\u5927\u6982\u7387\u662f\u53d8\u597d&#xff0c;\u4f46\u4e5f\u8981\u91cd\u65b0\u786e\u8ba4\u4e00\u904d&#xff09;\u3002<\/li>\n<li>\u4e0d\u8981\u6307\u671b\u300c\u5347\u7ea7 Qt \u5c31\u80fd\u4fee\u597d\u6240\u6709\u7d20\u6750\u95ee\u9898\u300d\u3002\u77e2\u91cf\u906e\u7f69\u3001Merge Paths\u3001\u6e10\u53d8\u63cf\u8fb9\u8fd9\u4e9b\u5728\u4e24\u7248\u91cc\u90fd\u4e0d\u652f\u6301&#xff0c;\u5c5e\u4e8e\u7d20\u6750\u5c42\u9762\u7684\u95ee\u9898&#xff0c;\u5f97\u6539\u7d20\u6750\u672c\u8eab\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55\u524d\u8a00GIF \u4e0e Lottie \u7684\u533a\u522bQt 6.8 \u4e0e Qt 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02\u6a21\u5757\u7ed3\u6784&#xff1a;\u4ece\u4e00\u4f53\u63d2\u4ef6\u5230\u72ec\u7acb Qt \u6a21\u5757\u65e5\u5fd7\u5206\u7c7b\u6362\u540d\u662f\u4e2a\u9690\u5f62\u5347\u7ea7\u6210\u672c\u4e24\u6761\u6e32\u67d3\u8def\u7ebf\u4e24\u7248\u5171\u6709\u7684\u9650\u5236\u6e05\u5355\u4e00\u4e2a\u66f4\u9690\u853d\u7684\u5dee\u522b&#xff1a;\u9884\u5408\u6210\u5c42\u5b9e\u6d4b&#xff1a;4 \u4e2a\u7d20\u6750\u5728\u4e24\u7248\u4e0b\u7684\u6e32\u67d3\u5dee\u5f02\u5b98\u65b9\u63d0\u4f9b\u7684\u5224\u65ad\u624b\u6bb5\u7ed3\u8bba\u524d\u8a00<br \/>\n\u5728QML\u91cc\u5b9e\u73b0\u52a8\u6001\u56fe\u7684\u8def\u5f84\u6709\u4e24\u6761&#xff1a;GIF \u548c Lottie\u3002<br \/>\n\u8fd9\u7bc7\u6587\u7ae0\u5148\u628a\u4e24\u8005\u7684\u53d6\u820d\u505a\u4e00\u70b9\u8bf4\u660e&#xff0c;\u7136\u540e\u5bf9\u6bd4 Qt 6.8 \u4e0e<\/p>\n","protected":false},"author":2,"featured_media":110156,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6356,5664,218],"topic":[],"class_list":["post-110158","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-6356","tag-qml","tag-qt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>QML \u52a8\u753b\u9009\u62e9\uff1aGIF\u4e0eLottie \u7684\u533a\u522b\uff0c\u4ee5\u53ca Qt 6.8 \u4e0e 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/110158.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"QML \u52a8\u753b\u9009\u62e9\uff1aGIF\u4e0eLottie \u7684\u533a\u522b\uff0c\u4ee5\u53ca Qt 6.8 \u4e0e 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55\u524d\u8a00GIF \u4e0e Lottie \u7684\u533a\u522bQt 6.8 \u4e0e Qt 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02\u6a21\u5757\u7ed3\u6784&#xff1a;\u4ece\u4e00\u4f53\u63d2\u4ef6\u5230\u72ec\u7acb Qt \u6a21\u5757\u65e5\u5fd7\u5206\u7c7b\u6362\u540d\u662f\u4e2a\u9690\u5f62\u5347\u7ea7\u6210\u672c\u4e24\u6761\u6e32\u67d3\u8def\u7ebf\u4e24\u7248\u5171\u6709\u7684\u9650\u5236\u6e05\u5355\u4e00\u4e2a\u66f4\u9690\u853d\u7684\u5dee\u522b&#xff1a;\u9884\u5408\u6210\u5c42\u5b9e\u6d4b&#xff1a;4 \u4e2a\u7d20\u6750\u5728\u4e24\u7248\u4e0b\u7684\u6e32\u67d3\u5dee\u5f02\u5b98\u65b9\u63d0\u4f9b\u7684\u5224\u65ad\u624b\u6bb5\u7ed3\u8bba\u524d\u8a00 \u5728QML\u91cc\u5b9e\u73b0\u52a8\u6001\u56fe\u7684\u8def\u5f84\u6709\u4e24\u6761&#xff1a;GIF \u548c Lottie\u3002 \u8fd9\u7bc7\u6587\u7ae0\u5148\u628a\u4e24\u8005\u7684\u53d6\u820d\u505a\u4e00\u70b9\u8bf4\u660e&#xff0c;\u7136\u540e\u5bf9\u6bd4 Qt 6.8 \u4e0e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/110158.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-26T01:09:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260926010923-6ab71b4343ada.gif\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110158.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/110158.html\",\"name\":\"QML \u52a8\u753b\u9009\u62e9\uff1aGIF\u4e0eLottie \u7684\u533a\u522b\uff0c\u4ee5\u53ca Qt 6.8 \u4e0e 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-26T01:09:24+00:00\",\"dateModified\":\"2026-09-26T01:09:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/110158.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/110158.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110158.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"QML \u52a8\u753b\u9009\u62e9\uff1aGIF\u4e0eLottie \u7684\u533a\u522b\uff0c\u4ee5\u53ca Qt 6.8 \u4e0e 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"QML \u52a8\u753b\u9009\u62e9\uff1aGIF\u4e0eLottie \u7684\u533a\u522b\uff0c\u4ee5\u53ca Qt 6.8 \u4e0e 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/110158.html","og_locale":"zh_CN","og_type":"article","og_title":"QML \u52a8\u753b\u9009\u62e9\uff1aGIF\u4e0eLottie \u7684\u533a\u522b\uff0c\u4ee5\u53ca Qt 6.8 \u4e0e 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55\u524d\u8a00GIF \u4e0e Lottie \u7684\u533a\u522bQt 6.8 \u4e0e Qt 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02\u6a21\u5757\u7ed3\u6784&#xff1a;\u4ece\u4e00\u4f53\u63d2\u4ef6\u5230\u72ec\u7acb Qt \u6a21\u5757\u65e5\u5fd7\u5206\u7c7b\u6362\u540d\u662f\u4e2a\u9690\u5f62\u5347\u7ea7\u6210\u672c\u4e24\u6761\u6e32\u67d3\u8def\u7ebf\u4e24\u7248\u5171\u6709\u7684\u9650\u5236\u6e05\u5355\u4e00\u4e2a\u66f4\u9690\u853d\u7684\u5dee\u522b&#xff1a;\u9884\u5408\u6210\u5c42\u5b9e\u6d4b&#xff1a;4 \u4e2a\u7d20\u6750\u5728\u4e24\u7248\u4e0b\u7684\u6e32\u67d3\u5dee\u5f02\u5b98\u65b9\u63d0\u4f9b\u7684\u5224\u65ad\u624b\u6bb5\u7ed3\u8bba\u524d\u8a00 \u5728QML\u91cc\u5b9e\u73b0\u52a8\u6001\u56fe\u7684\u8def\u5f84\u6709\u4e24\u6761&#xff1a;GIF \u548c Lottie\u3002 \u8fd9\u7bc7\u6587\u7ae0\u5148\u628a\u4e24\u8005\u7684\u53d6\u820d\u505a\u4e00\u70b9\u8bf4\u660e&#xff0c;\u7136\u540e\u5bf9\u6bd4 Qt 6.8 \u4e0e","og_url":"https:\/\/www.wsisp.com\/helps\/110158.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-26T01:09:24+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260926010923-6ab71b4343ada.gif"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/110158.html","url":"https:\/\/www.wsisp.com\/helps\/110158.html","name":"QML \u52a8\u753b\u9009\u62e9\uff1aGIF\u4e0eLottie \u7684\u533a\u522b\uff0c\u4ee5\u53ca Qt 6.8 \u4e0e 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-26T01:09:24+00:00","dateModified":"2026-09-26T01:09:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/110158.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/110158.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/110158.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"QML \u52a8\u753b\u9009\u62e9\uff1aGIF\u4e0eLottie \u7684\u533a\u522b\uff0c\u4ee5\u53ca Qt 6.8 \u4e0e 6.11 \u7684 Lottie \u5b9e\u73b0\u5dee\u5f02"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=110158"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110158\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/110156"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=110158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=110158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=110158"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=110158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}