{"id":255376,"date":"2024-05-15T11:15:55","date_gmt":"2024-05-15T03:15:55","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/255376.html"},"modified":"2024-05-15T11:15:59","modified_gmt":"2024-05-15T03:15:59","slug":"%e6%9c%89%e5%85%b3qt%e7%9a%84%e5%9b%be%e5%83%8f%e8%b0%83%e7%94%a8%e4%bb%a3%e7%a0%81%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/255376.html","title":{"rendered":"\u6709\u5173Qt\u7684\u56fe\u50cf\u8c03\u7528\u4ee3\u7801\u662f\u4ec0\u4e48"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27100721\/ffe45bab-5085-48b8-aabd-a2b0171d89d1.webp\" alt=\"\u6709\u5173Qt\u7684\u56fe\u50cf\u8c03\u7528\u4ee3\u7801\u662f\u4ec0\u4e48\" \/><\/p>\n<p><p>Qt\u63d0\u4f9b\u4e86\u4e00\u5957\u7075\u6d3b\u7684\u56fe\u5f62\u548c\u754c\u9762\u8bbe\u8ba1\u5de5\u5177\uff0c\u8ba9\u5f00\u53d1\u8005\u80fd\u591f\u8f7b\u677e\u5730\u5904\u7406\u56fe\u50cf\u3001\u663e\u793a\u548c\u64cd\u4f5c\u56fe\u5f62\u754c\u9762\u3002<strong>\u5728Qt\u4e2d\u8c03\u7528\u56fe\u50cf\u5e38\u7528\u7684\u51e0\u79cd\u65b9\u5f0f\u5305\u62ec\u4f7f\u7528QPixmap\u3001QImage\u548cQPicture\u7c7b<\/strong>\u3002\u5176\u4e2d\uff0c<strong>QPixmap<\/strong> \u662f\u7528\u4e8e\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u56fe\u50cf\u7684\u6700\u9002\u5408\u7684\u7c7b\uff0c\u5b83\u4e3b\u8981\u7528\u4e8e\u6e32\u67d3\u901f\u5ea6\u8981\u6c42\u9ad8\u7684\u573a\u5408\u3002QPixmap \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u65b9\u6cd5\u6765\u52a0\u8f7d\u3001\u663e\u793a\u548c\u8f6c\u6362\u56fe\u50cf\u6587\u4ef6\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bba QPixmap \u7c7b\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001QPIXMAP \u7684\u57fa\u672c\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>QPixmap \u7c7b\u4e3b\u8981\u7528\u4e8e\u5904\u7406\u56fe\u50cf\u6570\u636e\u548c\u4f18\u5316\u663e\u793a\u6548\u7387\u3002\u5b83\u63d0\u4f9b\u4e86\u4ece\u56fe\u50cf\u6587\u4ef6\u6216\u5176\u4ed6\u56fe\u50cf\u6e90\u52a0\u8f7d\u56fe\u50cf\u7684\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><p><strong>1. \u52a0\u8f7d\u548c\u663e\u793a\u56fe\u50cf<\/strong><\/p>\n<\/p>\n<p><p>\u8981\u4f7f\u7528 QPixmap \u52a0\u8f7d\u56fe\u50cf\uff0c\u9996\u5148\u9700\u8981\u521b\u5efa\u4e00\u4e2a QPixmap \u5bf9\u8c61\uff0c\u7136\u540e\u901a\u8fc7\u8c03\u7528\u5176 <code>load()<\/code> \u65b9\u6cd5\u6765\u52a0\u8f7d\u7279\u5b9a\u8def\u5f84\u7684\u56fe\u50cf\u6587\u4ef6\u3002\u52a0\u8f7d\u56fe\u50cf\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7 QLabel \u63a7\u4ef6\u6765\u663e\u793a\u56fe\u50cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-cpp\">QPixmap pixmap;<\/p>\n<p>pixmap.load(&quot;\/path\/to\/image.png&quot;);<\/p>\n<p>QLabel label;<\/p>\n<p>label.setPixmap(pixmap);<\/p>\n<p>label.show();<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0cQPixmap \u4f1a\u6839\u636e\u56fe\u50cf\u7684\u683c\u5f0f\u81ea\u52a8\u9009\u62e9\u6700\u4f18\u7684\u5185\u90e8\u8868\u793a\uff0c\u4ee5\u786e\u4fdd\u56fe\u50cf\u5728\u5c4f\u5e55\u4e0a\u7684\u663e\u793a\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p><strong>2. \u56fe\u50cf\u7684\u8f6c\u6362\u548c\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>QPixmap \u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u50cf\u5904\u7406\u529f\u80fd\uff0c\u4f8b\u5982\u7f29\u653e\u3001\u65cb\u8f6c\u3001\u88c1\u526a\u7b49\u3002\u901a\u8fc7\u8fd9\u4e9b\u529f\u80fd\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u5c06\u56fe\u50cf\u663e\u793a\u5230\u5c4f\u5e55\u4e4b\u524d\u5bf9\u5176\u8fdb\u884c\u9884\u5904\u7406\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-cpp\">QPixmap scaledPixmap = pixmap.scaled(100, 100, Qt::KeepAspectRatio);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u5c06\u539f\u59cb\u56fe\u50cf\u7b49\u6bd4\u4f8b\u7f29\u653e\u5230100&#215;100\u50cf\u7d20\u7684\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001QIMAGE \u4e0e QPIXMAP \u7684\u5bf9\u6bd4<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u56fe\u50cf\u65f6\uff0cQImage \u4e0e QPixmap \u662f\u4e24\u4e2a\u5e38\u7528\u7684\u7c7b\uff0c\u4f46\u5b83\u4eec\u4e4b\u95f4\u6709\u4e00\u4e9b\u5173\u952e\u7684\u533a\u522b\u3002<\/p>\n<\/p>\n<p><p><strong>1. \u4f7f\u7528\u573a\u666f\u4e0d\u540c<\/strong><\/p>\n<\/p>\n<p><p>QImage \u4e3b\u8981\u7528\u4e8e\u56fe\u50cf\u7684\u6df1\u5ea6\u5904\u7406\u548c\u50cf\u7d20\u7ea7\u64cd\u4f5c\uff0c\u5b83\u652f\u6301\u5bf9\u56fe\u50cf\u8fdb\u884c\u9510\u5316\u3001\u6a21\u7cca\u7b49\u5904\u7406\u3002\u800c QPixmap \u5219\u66f4\u591a\u7528\u4e8e\u56fe\u50cf\u7684\u5feb\u901f\u663e\u793a\u548c\u754c\u9762\u5143\u7d20\u7684\u7ed8\u5236\u3002<\/p>\n<\/p>\n<p><p><strong>2. \u529f\u80fd\u4e0e\u6027\u80fd\u7684\u5dee\u5f02<\/strong><\/p>\n<\/p>\n<p><p>QImage \u53ef\u4ee5\u5728\u4e0d\u540c\u989c\u8272\u6df1\u5ea6\u4e0b\u64cd\u4f5c\uff0c\u652f\u6301\u76f4\u63a5\u8bbf\u95ee\u548c\u4fee\u6539\u56fe\u50cf\u7684\u50cf\u7d20\u6570\u636e\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5904\u7406\u56fe\u50cf\u6570\u636e\u7684\u573a\u666f\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cQPixmap \u5219\u5728\u6e32\u67d3\u6027\u80fd\u4e0a\u5177\u6709\u4f18\u52bf\uff0c\u7279\u522b\u662f\u5728\u56fe\u50cf\u663e\u793a\u65b9\u9762\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001QPICTURE \u7684\u7279\u6b8a\u7528\u9014<\/h3>\n<\/p>\n<p><p>QPicture \u7c7b\u8bb0\u5f55\u548c\u91cd\u653e QP<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nter \u7684\u7ed8\u56fe\u547d\u4ee4\uff0c\u4f7f\u5f97\u56fe\u5f62\u64cd\u4f5c\u53ef\u4ee5\u88ab\u5e8f\u5217\u5316\u548c\u590d\u7528\u3002<\/p>\n<\/p>\n<p><p><strong>1. \u7ed8\u56fe\u547d\u4ee4\u7684\u8bb0\u5f55<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528 QPicture\uff0c\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7ed8\u56fe\u547d\u4ee4\u7684\u8bb0\u5f55\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-cpp\">QPicture picture;<\/p>\n<p>QPainter painter;<\/p>\n<p>painter.begin(&amp;picture);<\/p>\n<p>painter.drawEllipse(10, 20, 80, 70);<\/p>\n<p>painter.end();<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>2. \u91cd\u653e\u7ed8\u56fe\u547d\u4ee4<\/strong><\/p>\n<\/p>\n<p><p>\u8bb0\u5f55\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728\u4efb\u4f55\u65f6\u523b\u901a\u8fc7 QPainter \u91cd\u653e\u8fd9\u4e9b\u547d\u4ee4\uff0c\u5b9e\u73b0\u56fe\u5f62\u7684\u590d\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-cpp\">QPainter painter;<\/p>\n<p>painter.begin(&amp;widget);<\/p>\n<p>painter.drawPicture(0, 0, picture);<\/p>\n<p>painter.end();<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7 QPicture\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u4e00\u7cfb\u5217\u590d\u6742\u7684\u7ed8\u56fe\u64cd\u4f5c\u5c01\u88c5\u8d77\u6765\uff0c\u4fbf\u4e8e\u5728\u4e0d\u540c\u7684\u4e0a\u4e0b\u6587\u4e2d\u91cd\u7528\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u4ee3\u7801\u7684\u91cd\u7528\u6027\u548c\u6267\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5b9e\u6218\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3 Qt \u56fe\u50cf\u5904\u7406\u7684\u80fd\u529b\uff0c\u6211\u4eec\u6765\u770b\u4e00\u4e2a\u7efc\u5408\u793a\u4f8b\uff0c\u8be5\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528 QPixmap\u3001QImage \u548c QPicture \u6765\u5904\u7406\u548c\u663e\u793a\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><p><strong>1. QPixmap \u7684\u7efc\u5408\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a QPixmap \u5bf9\u8c61\uff0c\u52a0\u8f7d\u4e00\u4e2a\u56fe\u50cf\u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528 QPainter \u5728\u5176\u4e0a\u7ed8\u5236\u4e00\u4e9b\u7b80\u5355\u7684\u56fe\u5f62\u5143\u7d20\uff0c\u5982\u6587\u672c\u6216\u7ebf\u6761\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u5236\u4f5c\u51fa\u5bcc\u6709\u521b\u610f\u7684\u56fe\u50cf\u6548\u679c\u3002<\/p>\n<\/p>\n<p><p><strong>2. QImage \u7684\u50cf\u7d20\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528 QImage \u5bf9\u521d\u59cb\u56fe\u50cf\u7684\u50cf\u7d20\u8fdb\u884c\u64cd\u4f5c\uff0c\u6bd4\u5982\u8c03\u6574\u4eae\u5ea6\u3001\u5bf9\u6bd4\u5ea6\u6216\u5e94\u7528\u56fe\u50cf\u6ee4\u955c\u6548\u679c\u3002\u8fd9\u9700\u8981\u5bf9 QImage \u7684\u50cf\u7d20\u6570\u636e\u8fdb\u884c\u76f4\u63a5\u8bbf\u95ee\u548c\u4fee\u6539\u3002<\/p>\n<\/p>\n<p><p><strong>3. QPicture \u7684\u547d\u4ee4\u8bb0\u5f55<\/strong><\/p>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u901a\u8fc7 QPicture \u8bb0\u5f55\u4e00\u7cfb\u5217 QPainter \u7684\u64cd\u4f5c\uff0c\u7136\u540e\u5728\u53e6\u4e00\u4e2a context \u4e2d\u91cd\u653e\u8fd9\u4e9b\u64cd\u4f5c\uff0c\u5c55\u793a\u4e86 QPicture \u5728\u56fe\u5f62\u590d\u7528\u4e0a\u7684\u5f3a\u5927\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u7efc\u5408\u8fd0\u7528\u8fd9\u4e9b\u7c7b\u548c\u6280\u672f\uff0cQt \u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684\u56fe\u50cf\u5904\u7406\u548c\u663e\u793a\u6846\u67b6\uff0c\u4f7f\u5f97\u521b\u5efa\u5bcc\u6709\u89c6\u89c9\u6548\u679c\u7684\u5e94\u7528\u7a0b\u5e8f\u53d8\u5f97\u7b80\u5355\u800c\u9ad8\u6548\u3002\u4e0d\u540c\u7c7b\u7684\u9009\u7528\u548c\u6280\u672f\u7684\u7ec4\u5408\uff0c\u53d6\u51b3\u4e8e\u5e94\u7528\u573a\u666f\u7684\u5177\u4f53\u9700\u6c42\uff0c\u4ee5\u53ca\u5bf9\u6027\u80fd\u548c\u529f\u80fd\u7684\u4e0d\u540c\u8003\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u4f7f\u7528Qt\u8c03\u7528\u56fe\u50cf\uff1f<\/strong><br \/>\nQt\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u8de8\u5e73\u53f0\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u6846\u67b6\uff0c\u652f\u6301\u56fe\u50cf\u5904\u7406\u3002\u8981\u5728Qt\u4e2d\u8c03\u7528\u56fe\u50cf\uff0c\u53ef\u4ee5\u4f7f\u7528Qt\u7684\u56fe\u50cf\u5de5\u5177\u7c7bQImage\u3002\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\uff0c\u60a8\u53ef\u4ee5\u52a0\u8f7d\u3001\u5904\u7406\u548c\u663e\u793a\u56fe\u50cf\uff1a<\/p>\n<pre><code class=\"language-cpp\">QImage image;\nimage.load(&quot;path\/to\/image.jpg&quot;); \/\/ \u6839\u636e\u56fe\u50cf\u8def\u5f84\u52a0\u8f7d\u56fe\u50cf\n\/\/ \u8fdb\u884c\u56fe\u50cf\u5904\u7406\uff0c\u4f8b\u5982\u88c1\u526a\u3001\u7f29\u653e\u3001\u65cb\u8f6c\u7b49\nQImage processedImage = image.scaled(800, 600); \/\/ \u7f29\u653e\u56fe\u50cf\u5230\u6307\u5b9a\u5c3a\u5bf8\n\/\/ \u5c06\u56fe\u50cf\u663e\u793a\u5728Qt\u5e94\u7528\u7a0b\u5e8f\u7684\u7a97\u53e3\u4e2d\nQLabel* imageLabel = new QLabel;\nimageLabel-&gt;setPixmap(QPixmap::fromImage(processedImage));\nimageLabel-&gt;show();\n<\/code><\/pre>\n<p><strong>2. \u5982\u4f55\u5728Qt\u4e2d\u5b9e\u73b0\u56fe\u50cf\u7684\u7ed8\u5236\u548c\u7f16\u8f91\uff1f<\/strong><br \/>\nQt\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ed8\u56fe\u548c\u7f16\u8f91\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u4e8e\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u81ea\u5b9a\u4e49\u5185\u5bb9\u6216\u8fdb\u884c\u7f16\u8f91\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u77e9\u5f62\u548c\u6587\u672c\uff1a<\/p>\n<pre><code class=\"language-cpp\">QImage image(800, 600, QImage::Format_RGB32); \/\/ \u521b\u5efa\u4e00\u4e2a\u7a7a\u767d\u56fe\u50cf\nimage.fill(Qt::white); \/\/ \u5c06\u56fe\u50cf\u586b\u5145\u4e3a\u767d\u8272\u80cc\u666f\nQPainter painter(&amp;image); \/\/ \u521b\u5efa\u4e00\u4e2a\u7ed8\u56fe\u5de5\u5177\npainter.setPen(Qt::red); \/\/ \u8bbe\u7f6e\u753b\u7b14\u989c\u8272\u4e3a\u7ea2\u8272\npainter.drawRect(100, 100, 200, 150); \/\/ \u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u77e9\u5f62\npainter.setPen(Qt::blue); \/\/ \u8bbe\u7f6e\u753b\u7b14\u989c\u8272\u4e3a\u84dd\u8272\npainter.drawText(350, 200, &quot;Hello, Qt!&quot;); \/\/ \u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u6587\u672c\npainter.end(); \/\/ \u7ed3\u675f\u7ed8\u56fe\u64cd\u4f5c\n\/\/ \u5c06\u56fe\u50cf\u663e\u793a\u5728Qt\u5e94\u7528\u7a0b\u5e8f\u7684\u7a97\u53e3\u4e2d\nQLabel* imageLabel = new QLabel;\nimageLabel-&gt;setPixmap(QPixmap::fromImage(image));\nimageLabel-&gt;show();\n<\/code><\/pre>\n<p><strong>3. \u5982\u4f55\u5728Qt\u4e2d\u5b9e\u73b0\u56fe\u50cf\u7684\u6ee4\u955c\u6548\u679c\uff1f<\/strong><br \/>\n\u9664\u4e86\u57fa\u672c\u7684\u56fe\u50cf\u5904\u7406\u64cd\u4f5c\u5916\uff0cQt\u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6ee4\u955c\u6548\u679c\uff0c\u53ef\u4ee5\u7528\u4e8e\u6539\u53d8\u56fe\u50cf\u7684\u5916\u89c2\u6216\u6dfb\u52a0\u7279\u6b8a\u6548\u679c\u3002\u4ee5\u4e0b\u4ee3\u7801\u6f14\u793a\u4e86\u5982\u4f55\u5728Qt\u4e2d\u5e94\u7528\u6ee4\u955c\u6548\u679c\uff1a<\/p>\n<pre><code class=\"language-cpp\">QImage image;\nimage.load(&quot;path\/to\/image.jpg&quot;); \/\/ \u6839\u636e\u56fe\u50cf\u8def\u5f84\u52a0\u8f7d\u56fe\u50cf\n\/\/ \u5e94\u7528\u7070\u5ea6\u6ee4\u955c\nQImage filteredImage = image.convertToFormat(QImage::Format_Grayscale);\n\/\/ \u5e94\u7528\u6a21\u7cca\u6ee4\u955c\nfilteredImage = filteredImage.blurred(5); \/\/ \u53c2\u6570\u4e3a\u6a21\u7cca\u534a\u5f84\n\/\/ \u5c06\u6ee4\u955c\u540e\u7684\u56fe\u50cf\u663e\u793a\u5728Qt\u5e94\u7528\u7a0b\u5e8f\u7684\u7a97\u53e3\u4e2d\nQLabel* imageLabel = new QLabel;\nimageLabel-&gt;setPixmap(QPixmap::fromImage(filteredImage));\nimageLabel-&gt;show();\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u4ee3\u7801\u793a\u4f8b\uff0c\u60a8\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528Qt\u5bf9\u56fe\u50cf\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c\u3001\u7f16\u8f91\u548c\u6548\u679c\u5904\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Qt\u63d0\u4f9b\u4e86\u4e00\u5957\u7075\u6d3b\u7684\u56fe\u5f62\u548c\u754c\u9762\u8bbe\u8ba1\u5de5\u5177\uff0c\u8ba9\u5f00\u53d1\u8005\u80fd\u591f\u8f7b\u677e\u5730\u5904\u7406\u56fe\u50cf\u3001\u663e\u793a\u548c\u64cd\u4f5c\u56fe\u5f62\u754c\u9762\u3002\u5728Qt\u4e2d\u8c03\u7528\u56fe\u50cf\u5e38\u7528\u7684 [&hellip;]","protected":false},"author":3,"featured_media":255381,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/255376"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=255376"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/255376\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/255381"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=255376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=255376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=255376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}