{"id":44783,"date":"2025-06-21T06:05:09","date_gmt":"2025-06-20T22:05:09","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/44783.html"},"modified":"2025-06-21T06:05:09","modified_gmt":"2025-06-20T22:05:09","slug":"%e3%80%90c-qt%e3%80%91%e8%ae%a4%e8%af%86qt%e3%80%81qt-%e9%a1%b9%e7%9b%ae%e6%90%ad%e5%bb%ba%e6%b5%81%e7%a8%8b%ef%bc%88%e5%9b%be%e6%96%87%e5%b9%b6%e8%8c%82%e3%80%81%e9%80%9a%e4%bf%97%e6%98%93%e6%87%82","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/44783.html","title":{"rendered":"\u3010C++ Qt\u3011\u8ba4\u8bc6Qt\u3001Qt \u9879\u76ee\u642d\u5efa\u6d41\u7a0b\uff08\u56fe\u6587\u5e76\u8302\u3001\u901a\u4fd7\u6613\u61c2\uff09"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220505-6855db116c26f.png\" alt=\"\" \/> \u6bcf\u65e5\u6fc0\u52b1&#xff1a;\u201c\u4e0d\u8bbe\u9650\u548c\u81ea\u6211\u80af\u5b9a\u7684\u5fc3\u6001&#xff1a;I can do all things\u3002 \u2014 Stephen Curry\u201d<\/p>\n<p>\u7eea\u8bba\u200b&#xff1a; \u672c\u7ae0\u5c06\u5f00\u542fQt\u7684\u5b66\u4e60&#xff0c;Qt\u662f\u4e00\u4e2a\u8f83\u4e3a\u53e4\u8001\u4f46\u4ecd\u7136\u5728GUI\u56fe\u5f62\u5316\u754c\u9762\u8bbe\u8ba1\u4e2d\u6709\u7740\u4e3e\u8db3\u8f7b\u91cd\u7684\u5730\u4f4d&#xff0c;\u56e0\u4e3a\u5b83\u9002\u5408\u5d4c\u5165\u5f0f\u548c\u591a\u79cd\u5e73\u53f0\u800c\u88ab\u5e7f\u6cdb\u4f7f\u7528&#xff0c;\u672c\u7ae0\u5c06\u5148\u4ece\u8ba4\u8bc6Qt&#xff0c;\u518d\u5230\u7406\u89e3Qt\u7684\u4f5c\u7528\u548c\u5730\u4f4d&#xff0c;\u518d\u5230Qt\u7684\u5b89\u88c5\u4e0b\u8f7d&#xff0c;\u4ee5\u53ca\u521b\u5efa\u597d\u4e00\u4e2aQt\u9879\u76ee&#xff0c;\u518d\u5230\u6700\u540e\u7684\u7406\u89e3Qt\u9879\u76ee\u4e2d\u63d0\u524d\u914d\u5907\u597d\u7684\u6587\u4ef6&#xff0c;\u5e26\u4f60\u5165\u95e8Qt\u9879\u76ee\u3002 \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 \u65e9\u5173\u6ce8\u4e0d\u8ff7\u8def&#xff0c;\u8bdd\u4e0d\u591a\u8bf4\u5b89\u5168\u5e26\u7cfb\u597d&#xff0c;\u53d1\u8f66\u5566&#xff08;\u5efa\u8bae\u7535\u8111\u89c2\u770b&#xff09;\u3002<\/p>\n<h2>1. \u8ba4\u8bc6Qt<\/h2>\n<p>\u9996\u5148QT\u662f\u7528\u6765\u684c\u9762\u5e94\u7528\u5f00\u53d1&#xff08;\u7535\u8111\u4e0a\u5199\u7684\u7a0b\u5e8f&#xff09;&#xff0c;\u5176\u4e2dQt\u65e0\u6cd5\u5f00\u53d1\u7f51\u9875\u524d\u7aef\u548c\u79fb\u52a8\u5f00\u53d1&#xff08;\u867d\u7136\u76ee\u524dqt\u652f\u6301\u4e86\u79fb\u52a8\u5f00\u53d1&#xff0c;\u4f46\u6682\u65f6\u8fd8\u6ca1\u5565\u5382\u5546\u4f7f\u7528qt\u5f00\u53d1\u7684&#xff09; QT\u5ba2\u6237\u7aef\u5f00\u53d1\u7684\u91cd\u8981\u4efb\u52a1&#xff1a;\u7f16\u5199\u548c\u7528\u6237\u4ea4\u4e92\u7684\u754c\u9762<\/p>\n<p>\u5728\u7528\u6237\u4ea4\u4e92\u7684\u754c\u9762&#xff1a;\u7531\u4e24\u79cd\u5178\u578b\u98ce\u683c\u6784\u6210&#xff1a;<\/p>\n<li>\u547d\u4ee4\u884c\u754c\u9762\/\u7ec8\u7aef\u754c\u9762&#xff08;\u9ed1\u6846\u6846&#xff09;TUI&#xff0c;\u5e38\u7ed9\u7a0b\u5e8f\u5458\u4f7f\u7528\u7684\u4e13\u4e1a\u8f6f\u4ef6<\/li>\n<li>\u56fe\u5f62\u5316\u754c\u9762 GUI \u7ed9\u666e\u901a\u7528\u6237\u4f7f\u7528&#xff08;\u4e5f\u5c31\u7c7b\u4f3c\u6211\u4eec\u5e38\u7528\u7684windows\u73af\u5883&#xff09;<\/li>\n<p>\u800cQt\u5c31\u662f\u7528\u6765\u7f16\u5199 GUI\u7a0b\u5e8f\u7684\u4e00\u5957\u6846\u67b6~~<\/p>\n<p>\u5728Windows\u7f16\u5199GUI\u7a0b\u5e8f&#xff0c;\u6709\u5f88\u591a\u79cd\u65b9\u6cd5&#xff0c;\u5176\u4e2dQT\u53ea\u662f\u5176\u4e2d\u4e4b\u4e00&#xff0c;windows\u4e0b\u8fd8\u6709\u90a3\u4e9b\u65b9\u6848\u53ef\u4ee5\u5f00\u53d1GUI&#xff1a;<\/p>\n<li>Windows API \u7cfb\u7edf\u539f\u751f\u63d0\u4f9b\u7684API&#xff0c;\u5f00\u53d1\u8d77\u6765\u975e\u5e38\u539f\u59cb\u548c\u7e41\u7410&#xff08;\u6700\u7b80\u5355\u53e4\u8001\u7684\u65b9\u5f0f&#xff09;<\/li>\n<li>MFC&#xff1a;\u4f7f\u7528\u4e86\u9762\u5411\u5bf9\u8c61\u7684\u65b9\u5f0f&#xff0c;\u5c06Windows API\u63a5\u53e3\u8fdb\u884c\u5c01\u88c5\u4f7f\u7528&#xff08;\u5b83\u7684\u5f71\u54cd\u975e\u5e38\u6df1\u8fdc&#xff09;<\/li>\n<li>QT&#xff1a;&#xff08;1991\u5e74\u5de6\u53f3\u8bde\u751f&#xff09;\u5176\u4e2d\u5b83\u548cMFC\u7c7b\u4f3c\u540c\u6837\u7684\u90fd\u662f\u901a\u8fc7\u5c01\u88c5\u7684\u65b9\u5f0f\u5199\u6210\n<ul>\n<li>\u4f46MFC\u65e9\u5c31\u4e0d\u66f4\u65b0\u4e86&#xff0c;\u800cQT\u4ecd\u7136\u5728\u4e0d\u65ad\u63a8\u9648\u51fa\u65b0<\/li>\n<\/ul>\n<\/li>\n<li>GTK\u3001WxWidget<\/li>\n<li>Windows Forms&#xff1a;\u4e00\u4e2a\u7ed9C#\u7ed9\u91cf\u8eab\u5b9a\u505a\u7684\u4e00\u5957GUI\u6280\u672f\u4f53\u7cfb(\u5fae\u8f6f\u7684\u7f16\u7a0b\u8bed\u8a00 C#(C sharp)&#xff09;<\/li>\n<li>WPF\u3001UWP&#xff08;Windows Forms\u7684\u5347\u7ea7\u7248&#xff09;<\/li>\n<li>Electron&#xff1a;\u672c\u8d28\u4e0a\u662f\u5427HTML\u8fd9\u6837\u7684\u7f51\u9875&#xff0c;\u6253\u5305\u6210\u4e00\u4e2aWindows \u4e0a\u8fd0\u884c\u7684\u5ba2\u6237\u7aef\u7a0b\u5e8f&#xff08;\u6700\u521d\u7528\u6765\u5f00\u53d1atom\u6587\u672c\u7f16\u8f91\u5668\u7684&#xff0c;\u540e\u6765atom\u6ca1\u4e86&#xff0c;\u88ab\u5fae\u8f6f\u7684VsCode\u5e72\u8db4\u4e86&#xff09;&#xff0c;\u4f46\u7f3a\u70b9\u662f\u8fd0\u884c\u6548\u7387\u5728\u4e0a\u9762\u7684\u6280\u672f\u4f53\u7cfb\u4e2d\u662f\u6bd4\u8f83\u4f4e\u7684<\/li>\n<h2>2. Qt \u662f\u4ec0\u4e48<\/h2>\n<p>Qt \u662f\u2f00\u4e2a \u8de8\u5e73\u53f0\u7684 C&#043;&#043; \u56fe\u5f62\u2f64\u2f3e\u754c\u2faf\u5e94\u2f64\u7a0b\u5e8f\u6846\u67b6 \u3002<\/p>\n<ul>\n<li>\u6846\u67b6&#xff1a;\u672c\u8d28\u5c31\u662f\u4e00\u7fa4\u5927\u4f6c\u53d1\u660e\u51fa\u6765\u7684&#xff0c;\u8ba9\u6211\u4eec\u53ef\u80fd\u66f4\u52a0\u65b9\u4fbf\u9760\u8c31\u7684\u5199\u51fa\u6211\u4eec\u81ea\u5df1\u7684\u4ee3\u7801&#xff08;\u901a\u8fc7\u6846\u67b6\u7ea6\u675f\u7a0b\u5e8f\u5458&#xff09;<\/li>\n<li>\u5176\u4e2d\u5e93\u548c\u6846\u67b6\u90fd\u5c5e\u4e8e\u5927\u4f6c\u628a\u4ee3\u7801\u5199\u597d\u4e86&#xff0c;\u8ba9\u6211\u4eec\u4f7f\u7528<\/li>\n<li>\u800c\u5e93\u88ab\u7a0b\u5e8f\u5458\u8c03\u7528&#xff08;\u7a0b\u5e8f\u5458\u662f\u4e3b\u9898&#xff09;\u3001\u6846\u67b6\u5219\u662f\u5360\u4e3b\u9898&#xff0c;\u7a0b\u5e8f\u5458\u914d\u5408\u6846\u67b6&#xff0c;\u5b8c\u5584\u586b\u5145\u6846\u67b6\u4e2d\u7559\u51fa\u7684\u4e00\u4e9b\u7ec6\u8282<\/li>\n<\/ul>\n<p>\u7f16\u5199c&#043;&#043;\u4ee3\u7801&#xff0c;\u6846\u67b6\u5f53\u7136\u4e5f\u5f88\u91cd\u8981\u3002C&#043;&#043;\u7684\u751f\u6001\u662f\u5272\u88c2\u7684\u79bb\u6563\u7684&#xff0c;\u5e76\u4e0d\u60f3Java\u5b58\u5728\u5de8\u65e0\u9738\u793e\u7fa4&#xff0c;\u7edf\u4e00\u5929\u4e0b C&#043;&#043;\u4e0d\u540c\u7684\u5f00\u6e90\u793e\u533a\u3001\u5927\u5382&#xff0c;\u5404\u81ea\u6709\u5404\u81ea\u7684\u6846\u67b6&#xff0c;\u5404\u81ea\u4e3a\u653f \u8bfa\u57fa\u4e9a\u7684\u585e\u73ed\u7cfb\u7edf&#xff1a;\u4e3b\u63a8Qt\u6765\u505a\u4f5c\u4e3a\u5f00\u53d1<\/p>\n<p>\u76f8\u6bd4\u4e4b\u4e0b&#xff0c;\u50cfQt\u8fd9\u79cd&#xff0c;\u80fd\u88ab\u5927\u5bb6\u5171\u8bc6\u8ba4\u53ef\u7684\u6846\u67b6&#xff0c;\u5728\u6574\u4e2ac&#043;&#043;\u751f\u6001\u4e2d\u5e76\u4e0d\u591a\u89c1<\/p>\n<p>1991\u5e74&#xff0c;\u8ba1\u7b97\u673a\u4e2d&#xff0c;\u8bde\u751f\u4e86\u8bb8\u591a\u795e\u5947\u7684\u4e1c\u897f&#xff1a;Qt\u3001vim\u3001python\u3001OpenGL\u3001Linux\u3001\u6c64\u8001\u6e7f\u2026<\/p>\n<p>QT\u652f\u6301\u7684\u5e73\u53f0&#xff1a;<\/p>\n<ul>\n<li>Windows \u2012 XP\u3001Vista\u3001Win7\u3001Win8\u3001Win2008\u3001Win10&#xff08;windows\u5404\u4e2a\u7248\u672c&#xff09;<\/li>\n<li>Linux&#xff08;\u5404\u79cd\u53d1\u884c\u7248&#xff09;\u5c24\u5176\u662fLinux\u4e2d\u7684KDE\u684c\u9762\u57fa\u4e8eQt \u6784\u5efa\n<ul>\n<li>TUI \u57fa\u4e8e\u547d\u4ee4\u64cd\u4f5c&#xff0c;\u95e8\u69db\u9ad8\u4f46\u6548\u7387\u4e5f\u9ad8<\/li>\n<li>GUI \u57fa\u4e8e\u56fe\u5f62\u5316\u64cd\u4f5c&#xff0c;\u95e8\u69db\u4f4e&#xff0c;\u6548\u7387\u4e5f\u4f4e<\/li>\n<li>\u4e5f\u6709\u5c11\u6570\u7528\u6237\u4f7f\u7528Linux \u684c\u9762&#xff0c;\u5b58\u5728\u51e0\u5957\u73af\u5883&#xff1a;GNOME&#xff08;\u57fa\u4e8eGTK \u6784\u5efa&#xff09;\u3001KDE&#xff08;\u57fa\u4e8eQt \u6784\u5efa\u7684&#xff09;&#xff0c;\u5176\u4e2dLinux\u684c\u9762\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u6709\u5f88\u591a\u95ee\u9898&#xff08;\u5bb9\u6613\u5d29\u6e83&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>Mac\u7cfb\u7edf<\/li>\n<li>\u5d4c\u5165\u5f0f\u7cfb\u7edf\n<ul>\n<li>\u4e5f\u662f Qt \u4e3b\u8981\u7684\u6218\u573a<\/li>\n<li>\u65e5\u5e38\u4f7f\u7528\u7684&#xff0c;\u51b0\u7bb1\u3001\u6d17\u8863\u673a\u3001\u8def\u7531\u5668\u3002\u3002\u3002\u8fd9\u4e9b\u8bbe\u5907\u4e5f\u9700\u8981\u8ba1\u7b97\u673a&#xff0c;\u4f46\u8fd9\u4e9b\u8bbe\u5907\u7684\u8ba1\u7b97\u673a\u914d\u7f6e\u786c\u4ef6\u5c31\u4e0d\u7528\u5f88\u9ad8\u4e86&#xff0c;\u4f4e\u914d\u7f6e\u3001\u4f4e\u6210\u672c&#xff0c;\u5176\u4e2d\u7684\u56fe\u5f62\u5316\u754c\u9762\u5c31\u662f\u901a\u8fc7Qt \u6765\u5199&#xff0c;\u8fd9\u4e2a\u9886\u57df\u4e2d\u4e5f\u53d7\u5230\u4e86\u5b89\u5353\u7684\u6311\u6218<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Qt \u7248\u672c<\/h3>\n<p>\u2f6c\u524d\u6700\u65b0\u7684\u7248\u672c\u662f Qt 6. \u4f46\u662f\u76f8\u5bf9\u6765\u8bf4 Qt 6 \u548c Qt 5 \u4e4b\u95f4\u7684\u6838\u2f3c\u529f\u80fd\u533a\u522b\u4e0d\u2f24. \u5e76\u4e14\u4f01\u4e1a\u4e2d\u4e5f\u4ecd\u7136\u6709\u2f24\u91cf\u7684\u9879\u2f6c\u5728\u4f7f\u2f64 Qt 5.<\/p>\n<p>\u53e6\u5916 Qt \u5728\u53d1\u5e03\u7684\u65f6\u5019\u8fd8\u63d0\u4f9b\u4e86\u4e24\u79cd\u8bb8\u53ef\u8bc1&#xff1a;<\/p>\n<ul>\n<li>\u5546\u4e1a\u8bb8\u53ef: \u5f00\u53d1\u8005\u4ee5\u5546\u4e1a\u2f6c\u7684\u4f7f\u2f64Qt\u6846\u67b6\u8fdb\u2f8f\u5f00\u53d1\u548c\u53d1\u5e03\u8f6f\u4ef6\u7684\u8bb8\u53ef&#xff0c;\u5f00\u53d1\u8005\u9700\u8981\u8d2d\u4e70\u5546\u4e1a\u8bb8\u53ef\u5e76\u6309\u7167\u76f8\u5173\u89c4\u5b9a\u4f7f\u2f64Qt\u6846\u67b6\u3002\u5546\u4e1a\u8bb8\u53ef\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u529f\u80fd\u548c\u670d\u52a1&#xff0c;\u9002\u5408\u4e8e\u5546\u4e1a\u8f6f\u4ef6\u5f00\u53d1&#xff08;\u9700\u8981\u82b1\u94b1\u8d2d\u4e70&#xff0c;\u5176\u4e2d\u8d2d\u4e70\u5b83\u4e3b\u8981\u63d0\u4f9b\u7684\u662f\u6280\u672f\u652f\u6301&#xff0c;\u4e70\u5230\u5c31\u662f\u4e00\u4efd\u670d\u52a1&#xff09;<\/li>\n<li>\u5f00\u6e90\u8bb8\u53ef: \u5f00\u53d1\u8005\u4ee5\u2fae\u5546\u4e1a\u2f6c\u7684\u4f7f\u2f64Qt\u6846\u67b6\u8fdb\u2f8f\u5f00\u53d1\u548c\u53d1\u5e03\u8f6f\u4ef6\u7684\u8bb8\u53ef&#xff0c;\u5f00\u53d1\u8005\u53ef\u4ee5\u514d\u8d39\u4f7f\u2f64Qt\u6846\u67b6&#xff0c;\u4f46\u9700\u8981\u9075\u5b88\u5f00\u6e90\u8bb8\u53ef\u534f\u8bae\u7684\u8981\u6c42&#xff0c;\u5982\u5728\u8f6f\u4ef6\u4e2d\u5305\u542bQt\u8bb8\u53ef\u534f\u8bae\u7684\u58f0\u660e\u7b49&#xff08;\u767d\u5ad6&#xff09;<\/li>\n<\/ul>\n<h3>Qt \u7684\u4f18\u70b9<\/h3>\n<li>\u8de8\u5e73\u53f0&#xff0c;\u2f0f\u4e4e\u2f40\u6301\u6240\u6709\u7684\u5e73\u53f0&#xff1b;<\/li>\n<li>\u63a5\u2f1d\u7b80\u5355&#xff0c;\u5bb9\u6613\u4e0a\u2f3f&#xff0c;\u5b66\u4e60 QT \u6846\u67b6\u5bf9\u5b66\u4e60\u5176\u4ed6\u6846\u67b6\u6709\u53c2\u8003\u610f\u4e49\u3002<\/li>\n<li>\u2f00\u5b9a\u7a0b\u5ea6\u4e0a\u7b80\u5316\u4e86\u5185\u5b58\u56de\u6536\u673a\u5236&#xff08;\u534a\u81ea\u52a8\u7684\u5783\u573e\u56de\u6536&#xff0c;\u7b80\u5316\u5185\u5b58\u91ca\u653e&#xff0c;\u5c3d\u53ef\u80fd\u5c0f\u7684\u5f71\u54cd\u7a0b\u5e8f\u7684\u6548\u7387&#xff09;<\/li>\n<li>\u5f00\u53d1\u6548\u7387\u2fbc&#xff0c;\u80fd\u591f\u5feb\u901f\u7684\u6784\u5efa\u5e94\u2f64\u7a0b\u5e8f\u3002<\/li>\n<li>\u6709\u5f88\u597d\u7684\u793e\u533a\u6c1b\u56f4&#xff0c;\u5e02\u573a\u4efd\u989d\u5728\u7f13\u6162\u4e0a\u5347\u3002<\/li>\n<li>\u53ef\u4ee5\u8fdb\u2f8f\u5d4c\u2f0a\u5f0f\u5f00\u53d1<\/li>\n<h3>Qt \u7684\u5e94\u2f64\u573a\u666f<\/h3>\n<ul>\n<li>\u684c\u2faf\u5e94\u2f64\u7a0b\u5e8f Qt \u80fd\u591f\u521b\u5efa\u5404\u79cd\u7c7b\u578b\u7684\u684c\u2faf\u5e94\u2f64\u7a0b\u5e8f&#xff0c;\u5305\u62ec\u2f42\u4ef6\u7ba1\u7406\u5668\u3001\u5a92\u4f53\u64ad\u653e\u5668\u3001\u7ed8\u56fe\u7a0b\u5e8f\u7b49\u3002Qt \u5e94\u2f64\u7a0b\u5e8f\u2f40\u6301\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u53ef\u4ee5\u8fd0\u2f8f\u5728 Windows\u3001Linux\u3001macOS \u7b49\u684c\u2faf\u64cd\u4f5c\u7cfb\u7edf\u4e0a<\/li>\n<li>\u79fb\u52a8\u5e94\u2f64\u7a0b\u5e8f Qt \u2f40\u6301 Android \u548c IOS \u79fb\u52a8\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u4e3a\u5e94\u2f64\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u5f3a\u2f24\u7684\u8de8\u5e73\u53f0\u80fd\u2f12\u3002\u53ef\u4ee5\u4f7f\u2f64 Qt \u6784\u5efa\u5404\u79cd\u79fb\u52a8\u5e94\u2f64\u7a0b\u5e8f&#xff0c;\u4f8b\u5982\u793e\u4ea4\u5e94\u2f64\u3001\u6e38\u620f\u3001\u5a31\u4e50\u7b49<\/li>\n<li>\u5d4c\u2f0a\u5f0f\u7cfb\u7edf Qt \u5728\u5d4c\u2f0a\u5f0f\u9886\u57df\u5e94\u2f64\u2fae\u5e38\u2f34\u6cdb&#xff0c;\u5b83\u53ef\u4ee5\u6784\u5efa\u2faf\u5411\u5404\u79cd\u8bbe\u5907\u7684\u56fe\u5f62\u5e94\u2f64\u7a0b\u5e8f&#xff0c;\u5728\u673a\u9876\u76d2\u3001\u2ecb\u8f7d\u5a31\u4e50\u7cfb\u7edf\u3001\u5b89\u9632\u76d1\u63a7\u8bbe\u5907\u7b49\u9886\u57df\u5177\u6709\u2f34\u6cdb\u7684\u5e94\u2f64<\/li>\n<\/ul>\n<p>\u5f00\u53d1\u7684\u77e5\u540d\u8f6f\u4ef6&#xff1a; \u526a\u6620\u3001WPS Office \u529e\u516c\u8f6f\u4ef6\u3001Google Earth \u2f95\u6b4c\u5730\u56fe \u3001VirtualBox \u865a\u62df\u673a\u8f6f\u4ef6\u2026<\/p>\n<h2>3. Qt \u5f00\u53d1\u73af\u5883\u7684\u642d\u5efa<\/h2>\n<p>\u9700\u8981\u5b89\u88c53\u4e2a\u90e8\u5206:<\/p>\n<li>C&#043;&#043;\u7f16\u8bd1\u5668&#xff08;gcc\/cl.exe&#xff0c;\u5e76\u4e0d\u662fVisual Studio\u4e0d\u662fIDE&#xff0c;\u7f16\u8bd1\u5668\u53ea\u662fIDE\u8c03\u7528\u7684\u4e00\u4e2a\u7a0b\u5e8f&#xff09;<\/li>\n<li>Qt SDK&#xff08;SDK \u8f6f\u4ef6\u5f00\u53d1\u5305&#xff09;windows\u7248\u672c Qt SDK\u91cc\u5df2\u7ecf\u5185\u7f6e\u4e86 C&#043;&#043; \u7f16\u8bd1\u5668&#xff08;\u5185\u7f6e\u7f16\u8bd1\u5668\u662fmingw&#xff0c;windows\u7248\u672c\u7684gcc\/g&#043;&#043;&#xff09;<\/li>\n<li>\u9700\u8981\u6709\u4e2a Qt \u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883&#xff08;IDE&#xff09;\n<li>Qt Creator&#xff08;Qt\u5b98\u65b9\u63d0\u4f9b\u7684&#xff0c;\u6700\u5bb9\u6613\u5165\u95e8&#xff0c;\u4e0a\u624b\u7684\u65b9\u5f0f&#xff0c;\u5f00\u7bb1\u5373\u7528\u4e0d\u7528\u600e\u4e48\u914d\u7f6e&#xff09;\u867d\u7136\u8fc7\u7a0b\u4e2d\u5b58\u5728\u8bb8\u591abug \u4f46\u6574\u4f53\u6765\u8bf4\u633a\u65b9\u4fbf<\/li>\n<li>Visual Studio&#xff08;\u529f\u80fd\u66f4\u5f3a&#xff0c;\u4f46\u9700\u8981\u914d\u7f6e\u5bb9\u6613\u51fa\u9519&#xff09;<\/li>\n<li>Eclipse&#xff08;\u5e76\u975e\u53ea\u662fJava IDE&#xff0c;\u672c\u8eab\u662f\u4e00\u4e2aIDE\u5e73\u53f0\u53ef\u4ee5\u642d\u914d\u4e0d\u540c\u63d2\u4ef6\u6784\u6210\u4e0d\u540c\u7684IDE&#xff0c;\u4f46\u76ee\u524d\u5e02\u573a\u4efd\u989d\u51b2\u51fb\u5f88\u5927 JetBrain\u3001VSCode&#xff09;<\/li>\n<\/li>\n<ul>\n<li>\u672c\u8d28\u53ea\u7528\u5b89\u88c5\u4e00\u4e2a Qt SDK&#xff0c;\u53e6\u5916\u4e24\u4e2a\u5c31\u6709\u4e86<\/li>\n<\/ul>\n<p>\u4e0b\u8f7dQt SDK&#xff1a;<\/p>\n<p>\u53bb\u5b98\u65b9\u7f51\u7ad9&#xff08;\u4e0b\u8f7d\u4e00\u4e2a\u5b89\u88c5\u7a0b\u5e8f&#xff0c;\u9996\u9009\u5b98\u65b9\u7f51\u7ad9&#xff09; Qt \u7684\u5b98\u65b9\u7f51\u7ad9&#xff08;\u4e0b\u8f7d5.14\u7684\u4e00\u4e2a\u7248\u672c\u76f8\u5bf9\u4e8e\u4e0d\u7b97\u5f88\u65b0\u4e5f\u4e0d\u8001&#xff09;&#xff1a;&#xff08;\u56fd\u5916\u7f51\u7ad9\u53ef\u80fd\u901f\u5ea6\u8f83\u6162&#xff0c;\u60f3\u529e\u6cd5fq&#xff09;<\/p>\n<h2>4. Qt Creator\u5b89\u88c5\u8fc7\u7a0b<\/h2>\n<li>\u5173\u95ed\u7f51\u7edc\u8df3\u8fc7\u6ce8\u518c<\/li>\n<li>\u9009\u62e9\u8def\u5f84&#xff08;\u5b89\u88c5\u8f6f\u4ef6\u6240\u5728\u76ee\u5f55\u5e38\u8bc6&#xff1a;\u4e0d\u8981\u4ee3\u4e2d\u6587\u3001\u7279\u6b8a\u7b26\u53f7\u4ee5\u53ca\u7a7a\u683c&#xff09;<\/li>\n<li>Qt SDK\u4e2d\u5185\u7f6e\u7684 c&#043;&#043; \u7f16\u8bd1\u5668&#xff08;windows \u7248\u672c\u7684gcc\/g&#043;&#043;&#xff09; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220506-6855db127b79d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220506-6855db128f0bc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7ed9\u6211\u4eec\u88c5\u597d\u7684Qt \u914d\u7f6e\u4e00\u4e0b\u73af\u5883\u53d8\u91cf&#xff08;\u4e0d\u662f\u5fc5\u987b\u7684&#xff0c;\u4f46\u7ecf\u91cf\u914d\u7f6e\u4e0a\u9632\u6b62\u83ab\u540d\u7684\u9519\u8bef&#xff09;<\/li>\n<ul>\n<li>\u6253\u5f00\u73af\u5883\u53d8\u91cf&#xff08;windows\u641c\u7d22&#xff09;<\/li>\n<li>windows \u4e5f\u662f\u652f\u6301\u591a\u7528\u6237\u7684\u64cd\u4f5c\u7cfb\u7edf&#xff08;\u5206\u4e3a\u7528\u6237\u53d8\u91cf\u3001\u7cfb\u7edf\u53d8\u91cf&#xff09;<\/li>\n<li>\u9009\u62e9Path&#xff1a;\u4e5f\u5c31\u548cLinux\u4e2d\u7684\u73af\u5883\u53d8\u91cf\u662f\u4e00\u6837\u7684&#xff08;\u8f93\u5165\u7684\u4e00\u4e2a\u547d\u4ee4\u4ecepath\u8def\u5f84\u4e2d\u67e5\u627e&#xff01;&#xff09;<\/li>\n<li>\u6b64\u5904\u5c31\u9700\u8981\u628aQt SDK\u4e2d\u7684\u67d0\u4e2a\u76ee\u5f55\u5047\u5982\u5230Path\u73af\u5883\u53d8\u91cf\u4e2d&#xff08;bin\u76ee\u5f55D:\\\\Qt\\\\Qt5.14.2\\\\5.14.2\\\\mingw73_64\\\\bin&#xff0c;\u5185\u90e8\u6709\u8bb8\u591a\u52a8\u6001\u5e93\u3001exe\u7684\u76ee\u5f55&#xff09;<\/li>\n<li>\u5c06\u7cfb\u7edf\u53d8\u91cf\u4e2d\u7684Path\u4e2d\u8fdb\u884c\u6dfb\u52a0\u8be5\u76ee\u5f55&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220506-6855db129bb2a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u662f\u4e3a\u4e86&#xff1a;<\/p>\n<li>\u8ba9\u64cd\u4f5c\u7cfb\u7edf Qt Creator \u5de5\u5177 &#xff0c;\u80fd\u591f\u627e\u5230Qt SDK \u4e2d\u63d0\u4f9b\u7684exe<\/li>\n<li>\u8fd0\u884c Qt \u7a0b\u5e8f\u7684\u65f6\u5019&#xff0c;\u80fd\u591f\u627e\u5230 .dll \u52a8\u6001\u5e93&#xff08;Windows\u73af\u5883\u4e2d&#xff09;<\/li>\n<li>\u73af\u5883\u53d8\u91cf\u7b80\u5355\u7684\u7406\u89e3\u6210&#xff1a;\u201c\u8fdb\u7a0b\u95f4\u901a\u4fe1\u201d \u673a\u5236&#xff08;\u8ba9\u4e00\u4e2a\u8fdb\u7a0b\u501f\u52a9\u73af\u5883\u53d8\u91cf\u627e\u5230\u53e6\u5916\u4e00\u4e2a\u8fdb\u7a0b&#xff09;<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220506-6855db12b44c0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5bf9\u4e8e\u5b89\u88c5\u6210\u529f\u540e\u4f1a\u67095\u4e2a\u7a0b\u5e8f\u4ed6\u4eec\u5206\u522b\u662f&#xff1a;<\/p>\n<li>Assistant&#xff1a;\u79bb\u7ebf\u5b98\u65b9\u6587\u6863&#xff0c;\u4e5f\u5c31\u662f\u5b58\u50a8\u8bb8\u591a\u7684\u51fd\u6570\u7684\u4f7f\u7528\u65b9\u6cd5&#xff08;\u82f1\u6587\u6587\u6863\u8981\u6709\u8010\u5fc3&#xff09;<\/li>\n<li>Designer&#xff1a;Qt \u8bbe\u8ba1\u5e08&#xff0c;\u56fe\u5f62\u5316\u7684\u8bbe\u8ba1\u754c\u9762\u7684\u5de5\u5177&#xff0c;\u62d6\u62fd\u5f0f\u7684\u5feb\u901f\u751f\u6210\u754c\u9762&#xff08;\u540e\u9762\u7ecf\u5e38\u4f7f\u7528&#xff0c;\u4f46\u662f\u662f\u642d\u914d Qt Creator\u6765\u4f7f\u7528&#xff09;<\/li>\n<li>Linguist&#xff1a;Qt \u8bed\u8a00\u5bb6&#xff0c;\u4f5c\u7528\u662f\u5bf9\u56fd\u9645\u5316\u8fdb\u884c\u652f\u6301&#xff0c;\u6709\u70b9\u65f6\u5019\u5199\u7684\u7a0b\u5e8f&#xff0c;\u8981\u548c\u56fd\u9645\u63a5\u8f68&#xff08;\u5141\u8bb8\u5355\u72ec\u521b\u5efa\u4e00\u4e2a \u8bed\u8a00\u914d\u7f6e\u6587\u4ef6&#xff0c;\u628a\u754c\u9762\u9700\u8981\u7528\u5230\u7684\u5404\u79cd\u6587\u5b57&#xff0c;\u90fd\u914d\u7f6e\u5230\u6587\u4ef6\u4e2d&#xff0c;\u5e76\u4e14\u5728\u6587\u4ef6\u4e2d\u63d0\u524d\u628a\u5404\u79cd\u4e00\u6837\u7684\u7ffb\u8bd1\u914d\u7f6e\u8fdb\u53bb&#xff09;\u5c31\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684 api \u5207\u6362\u8fd9\u91cc\u7684\u8bed\u8a00\u914d\u7f6e<\/li>\n<li>Qt 5.14.2&#xff1a;Qt \u7684\u547d\u4ee4\u884c<\/li>\n<li>Qt Creator&#xff1a;Qt \u7684\u96c6\u6210\u5f00\u53d1\u6839\u636e&#xff08;\u5b66\u4e60Qt \u8fc7\u7a0b\u4e2d\u6700\u4e3b\u8981\u7684\u5de5\u5177&#xff09;<\/li>\n<h2>5. \u521d\u59cb\u521b\u5efaQt\u9879\u76ee<\/h2>\n<li>\u6253\u5f00QT Creator<\/li>\n<li>\u6253\u5f00\u53f3\u4e0a\u89d2\u7684\u6587\u4ef6\u9009\u62e9\u65b0\u5efa&#xff08;\u5e94\u7528\u7a0b\u5e8f&#xff09;\n<li>\u5728\u9009\u62e9Application<\/li>\n<li>Qt Widgets App\u2026<\/li>\n<li>Qt \u4e0d\u4ec5\u652f\u6301C&#043;&#043;\u3001\u4e5f\u652f\u6301 Python \u548c Java <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220506-6855db12c9111.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220506-6855db12dbdb5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/li>\n<li>\u6211\u4eec\u672c\u5904\u53ea\u6d89\u53ca\u7b2c\u4e00\u4e2a Qt Widgets \u9009\u62e9\u540e\u7ee7\u7eed\n<li>\u586b\u5199\u540d\u79f0<\/li>\n<li>\u8def\u5f84<\/li>\n<li>\u4e0b\u4e00\u6b65 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220506-6855db12eeb70.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/li>\n<li>\u6784\u5efa\u7cfb\u7edf&#xff0c;\u901a\u8fc7Qt\u5199\u7684\u7a0b\u5e8f&#xff0c;\u6d89\u53ca\u5230\u4e00\u7cfb\u5217\u7684 \u5143\u7f16\u7a0b\u6280\u672f&#xff08;\u901a\u8fc7\u4ee3\u7801\u6765\u751f\u6210\u4ee3\u7801&#xff09;\n<li>Qt \u6846\u67b6\u4f1a\u5728\u7f16\u8bd1\u7684\u65f6\u5019&#xff0c;\u81ea\u52a8\u5148\u8c03\u7528\u4e00\u7cfb\u5217\u6839\u636e&#xff0c;\u57fa\u4e8e\u4f60\u81ea\u5df1\u7684\u4ee3\u7801&#xff0c;\u751f\u6210\u4e00\u7cfb\u5217\u7684\u5176\u4ed6\u7684 C&#043;&#043; \u4ee3\u7801&#xff0c;\u6700\u7ec8\u7f16\u8bd1\u7684\u4ee3\u7801<\/li>\n<li>\u5176\u4e2d qmake \u662f\u8001\u724c\u7684Qt\u6784\u5efa\u5de5\u5177&#xff08;\u9ed8\u8ba4\u9009\u62e9qmake\u4f7f\u7528\u5373\u53ef&#xff09;<\/li>\n<li>CMake \u5e76\u975eQt\u4e13\u5c5e&#xff0c;\u5f88\u591a\u7684\u5f00\u6e90\u9879\u76ee\u90fd\u4f1a\u4f7f\u7528CMake<\/li>\n<\/li>\n<li>\u5176\u4e2d\u5173\u6ce8&#xff1a;Base Class&#xff1a;\u4f7f\u7528Qt Creator \u521b\u5efa\u9879\u76ee&#xff0c;\u4f1a\u81ea\u52a8\u7684\u751f\u6210\u4e00\u4e9b\u4ee3\u7801 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db130b1cf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\n<li>\u751f\u6210\u7684\u4ee3\u7801\u5c31\u5305\u542b\u4e00\u4e2a\u7c7b<\/li>\n<li>\u6b64\u5904\u5c31\u662f\u8981\u9009\u62e9\u8fd9\u4e2a\u81ea\u52a8\u751f\u6210\u7684\u7c7b\u7684\u7236\u7c7b<\/li>\n<li>\u6b64\u5904\u5148\u9009\u62e9QWidget\u8fdb\u884c\u5b66\u4e60<\/li>\n<li>\u5176\u4e2d Class name \u5c31\u662f\u81ea\u5df1\u751f\u6210\u7684\u7c7b&#xff0c;Base class \u5c31\u662f\u7236\u7c7b <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db131d31c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>Qt \u4e2d\u5185\u7f6e\u7684\u7c7b\u90fd\u662f\u4ee5Q\u5f00\u5934<\/li>\n<li>\u800c\u4e0b\u9762\u7684\u5c31\u662f\u6587\u4ef6\u540d&#xff0c;\u4ed6\u548c\u4e0a\u9762\u7684\u7c7b\u662f\u5173\u8054\u7684&#xff08;\u5176\u4e2d\u53ef\u4ee5\u4e0d\u4e00\u6837&#xff0c;\u4f46\u7ecf\u91cf\u4fdd\u6301\u4e00\u81f4&#xff09;<\/li>\n<li>Form file \u975e\u5e38\u5173\u952e&#xff1a; Qt\u4e2d\u521b\u5efa\u56fe\u5f62\u5316\u754c\u9762\u7684\u7a0b\u5e8f&#xff0c;\u6709\u4e24\u79cd\u65b9\u5f0f\n<li>\u76f4\u63a5\u901a\u8fc7c&#043;&#043;\u4ee3\u7801\u7684\u65b9\u5f0f\u521b\u5efa\u754c\u9762<\/li>\n<li>\u901a\u8fc7form file\u6587\u4ef6&#xff0c;\u4ee5\u56fe\u5f62\u5316\u7684\u65b9\u5f0f\u6765\u751f\u6210\u754c\u9762&#xff08;\u6b64\u65f6\u5c31\u53ef\u4ee5\u4f7f\u7528Qt Designer \u6216\u76f4\u63a5\u4f7f\u7528Qt Creator \u6765\u7f16\u8f91\u8fd9\u4e2a ui \u6587\u4ef6&#xff0c;\u4ece\u800c\u4ee5\u56fe\u5f62\u5316\u7684\u65b9\u5f0f&#xff0c;\u5feb\u901f\u65b9\u4fbf\u7684\u751f\u6210\u56fe\u5f62\u5316\u754c\u9762&#xff09;<\/li>\n<\/li>\n<\/li>\n<li>\u8fd9\u91cc\u662f\u9009\u62e9 \u7ffb\u8bd1\u6587\u4ef6&#xff08;\u5bf9\u5e94\u7684\u8bed\u8a00&#xff09;\u6682\u65f6\u4e0d\u5173\u6ce8&#xff0c;\u5b83\u662f\u548c\u56fd\u9645\u5316\u76f8\u5173\u7684 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db132c9ef.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u9009\u62e9\u4e00\u4e0b\u57fa\u4e8e\u90a3\u4e2a\u7f16\u8bd1\u5668\u7684Qt SDK \u6765\u6784\u5efa\u540e\u7eed\u4ee3\u7801\n<li>\u5c31\u9ed8\u8ba4\u52fe\u9009 WinGW \u5c31\u53ef\u4ee5\u4e86 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db133e059.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/li>\n<li>\u53ef\u4ee5\u9009\u62e9\u7248\u672c\u63a7\u5236\u5de5\u5177&#xff08;\u5982git\u2026&#xff09; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db134f332.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u6700\u7ec8\u5b8c\u6210\u5c31\u521b\u5efa\u597d\u4e86<\/li>\n<ul>\n<li>\u5f53\u521b\u5efa\u597d\u540e&#xff0c;\u5728\u5de6\u4e0b\u89d2\u6709\u8fd0\u884c\u6309\u94ae&#xff08;\u7eff\u8272\u4e09\u89d2&#xff09;&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db136047c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\n<ul>\n<li>\u5176\u4e2d\u6ce8\u610f\u6211\u4eec\u521b\u5efa\u9879\u76ee\u8fc7\u7a0b\u4e2d\u7684\u5b58\u50a8\u8def\u5f84&#xff0c;\u4e0d\u8981\u6709\u4e2d\u6587\u8def\u5f84&#xff01;&#xff01;<\/li>\n<li>\u6700\u7ec8\u5c31\u4f1a\u6784\u5efa\u51fa\u4e00\u4e2a\u56fe\u5f62\u5316\u754c\u9762&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db136911e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>6. \u8ba4\u8bc6\u754c\u9762\u53ca\u7ec6\u8282<\/h2>\n<p>\u5728\u6784\u5efa\u6210\u529f\u540e&#xff0c;\u4f1a\u81ea\u52a8\u751f\u6210main\u51fd\u6570&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5176\u4e2dmain\u51fd\u6570\u4e2d\u6709&#xff1a;<\/p>\n<li>\u5fc5\u5907\u7684 QApplication\u5bf9\u8c61<\/li>\n<li>Widget\u5bf9\u8c61&#xff0c;\u6839\u636e\u5bf9\u8c61\u5c31\u662f\u6211\u4eec\u521b\u5efa\u9879\u76ee\u65f6\u9009\u62e9\u7684QWidget <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db137a09d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/li>\n<li>\n<p>\u6784\u5efa\u540e\u4f1a\u751f\u6210&#xff0c;Widget.h\u7c7b<\/p>\n<li>\u5176\u4e2dQ_OBJECT \u662f\u4e00\u4e2aQt\u5185\u7f6e\u7684\u5b8f&#xff08;\u5b8f\u7684\u672c\u8d28\u4e0a\u5c31\u662f\u6587\u672c\u66ff\u6362&#xff09;\n<ul>\n<li>Q_OBJECT\u5c55\u5f00\u4e4b\u540e&#xff0c;\u5c31\u4f1a\u751f\u6210\u4e00\u5927\u5806\u4ee3\u7801<\/li>\n<li>Qt\u4e2d\u6709\u4e00\u4e2a\u975e\u5e38\u6838\u5fc3\u7684\u673a\u5236&#xff0c;\u201c\u4fe1\u53f7\u201d \u548c \u201c\u69fd\u201d<\/li>\n<li>\u5982\u679c\u8fd9\u4e2a\u7c7b\u60f3\u4f7f\u7528 \u4fe1\u53f7\u548c\u69fd \u5c31\u9700\u8981\u5f15\u5165\u8fd9\u4e2a\u5b8f&#xff01;<\/li>\n<\/ul>\n<\/li>\n<li>\u5176\u4e2d\u6784\u9020\u51fd\u6570\u4e2d\u7684 parent \u53c2\u6570&#xff1a;\n<ul>\n<li>\u662f\u4e00\u4e2a\u5f15\u5165\u7684\u201c\u5bf9\u8c61\u6811\u201d\u673a\u5236&#xff08;\u540e\u7eed\u7ec6\u8bb2&#xff09;<\/li>\n<li>\u521b\u5efa\u7684Qt\u5bf9\u8c61\u7ed9\u6302\u5230\u5bf9\u8c61\u6811&#xff08;N\u53c9\u6570&#xff09;\u4e0a<\/li>\n<li>\u5f80\u6811\u4e0a\u6302\u7684\u65f6\u5019\u5c31\u9700\u8981\u6307\u5b9a \u201c\u7236\u8282\u70b9\u201d<\/li>\n<\/ul>\n<\/li>\n<li>UI::Widget* ui\n<ul>\n<li>\u5b83\u548c Form file \u5bc6\u5207\u76f8\u5173<\/li>\n<\/ul>\n<\/li>\n<\/li>\n<li>\n<p>widget.cpp <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db13a0910.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>form file<\/p>\n<ul>\n<li>\u5f53\u6211\u4eec\u53cc\u51fb ui \u6587\u4ef6&#xff0c;\u6b64\u65f6 Qt Creator \u5c31\u4f1a\u8c03\u7528Qt Designer&#xff0c;\u6253\u5f00UI\u6587\u4ef6&#xff0c;\u56fe\u5f62\u5316\u7684\u754c\u9762\u7f16\u8f91\u5668 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220507-6855db13bf2ba.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u6b64\u65f6\u5728\u70b9\u51fb\u5de6\u4fa7\u7684\u7f16\u8f91\u6309\u94ae&#xff0c;\u5c31\u4f1a \u663e\u793a ui \u6587\u4ef6\u7684\u672c\u9898<\/li>\n<li>\u8fd9\u4e2a\u683c\u5f0f \u4e5f\u5c31\u662f xml \u683c\u5f0f&#xff08;\u548chtml\u7c7b\u4f3c&#xff0c;\u90fd\u662f\u4f7f\u7528\u6210\u5bf9\u7684\u6807\u7b7e\u6765\u8868\u793a\u6570\u636e&#xff09;<\/li>\n<li>xml \u8fd9\u91cc\u7684\u6807\u7b7e&#xff0c;\u6709\u90a3\u4e9b\u6807\u7b7e\u6709\u4ec0\u4e48\u542b\u4e49&#xff0c;\u90fd\u662f\u7a0b\u5e8f\u5458\u81ea\u5df1\u5b9a\u4e49\u7684&#xff08;\u4e5f\u5c31\u662fqt\u5f00\u53d1\u7684\u5927\u4f6c\u4eec\u5b9a\u4e49\u7684&#xff09;&#xff0c;\u53ea\u7528\u77e5\u9053 ui \u6587\u4ef6\u672c\u8d28\u5c31\u662f\u4e00\u4e2axml\u5373\u53ef<\/li>\n<li>\u7c7b\u4f3c\u7684\u5c31\u662f\u81ea\u5b9a\u4e49\u5e94\u7528\u5c42\u534f\u8bae<\/li>\n<li>Qt \u4e2d\u4f7f\u7528 xml\u6587\u4ef6\u5c31\u662f\u63cf\u8ff0\u7a0b\u5e8f\u7684\u754c\u9762\u662f\u5565\u6837\u7684&#xff0c;\u8fdb\u4e00\u6b65\u7684qmake\u4f1a\u8c03\u7528\u76f8\u5173\u7684\u5de5\u5177&#xff0c;\u4f9d\u636e\u8fd9\u4e2axml\u6587\u4ef6\u751f\u6210\u4e00\u4e9bc&#043;&#043;\u4ee3\u7801&#xff0c;\u4ece\u800c\u628a\u5b8c\u6574\u7684\u754c\u9762\u6784\u9020\u51fa\u6765 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220508-6855db141aba0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>.pro&#xff1a;Qt \u9879\u76ee\u7684\u5de5\u7a0b\u6587\u4ef6&#xff0c;\u4e5f\u662f qmake \u5de5\u5177 \u6784\u5efa\u65f6\u5019\u7684\u91cd\u8981\u4f9d\u636e<\/p>\n<ul>\n<li>\u7c7b\u4f3c\u4e8e Linux \u4e2d\u5b66\u4e60\u7684 makefile \u6587\u4ef6<\/li>\n<li>qmake \u642d\u914d .pro \u8d77\u5230\u7684\u4f5c\u7528 \u548c makefile \u7c7b\u4f3c\u7684<\/li>\n<li>\u800c\u5176\u4e2d \u6211\u4eec\u8fd9\u91cc\u5e76\u4e0d\u7528\u53bb\u5b66\u4e60 qmake \u548c .pro \u56e0\u4e3aQt Creator\u628a\u8fd9\u4e2a\u8fc7\u7a0b\u90fd\u5c01\u88c5\u597d\u4e86&#xff0c;\u6240\u4ee5\u6211\u4eec\u5e76\u4e0d\u7528\u8fc7\u591a\u5173\u6ce8&#xff0c;\u4ec5\u9700\u8981\u70b9\u51fb\u8fd0\u884c\u5373\u53ef <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220508-6855db14318d4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4e0a\u9762\u770b\u5230\u7684 .h .cpp .pro .ui \u90fd\u662f\u6e90\u4ee3\u7801<\/p>\n<ul>\n<li>\n<p>\u5982\u679c\u7f16\u8bd1\u8fd0\u884c Qt \u9879\u76ee&#xff0c;\u6784\u5efa\u8fc7\u7a0b\u4e2d\u8fd8\u4f1a\u751f\u6210\u4e00\u4e9b\u4e2d\u95f4\u6587\u4ef6<\/p>\n<\/li>\n<li>\n<p>\u6253\u5f00\u6587\u4ef6\u7ba1\u7406\u5668&#xff0c;\u67e5\u770b\u9879\u76ee\u5bf9\u5e94\u7684\u76ee\u5f55<img decoding=\"async\" src=\"2025-06-213ewwv1a3pps.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u5176\u4e2d\u6211\u4eec\u5728\u8fd0\u884c\u4e00\u6b21 \u7a0b\u5e8f\u540e\u5c31\u4f1a\u751f\u6210\u4e00\u4e2a&#xff1a; build-xxxx <img decoding=\"async\" src=\"2025-06-21qdzm1vxsmj5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u8fd9\u4e2a\u76ee\u5f55\u91cc\u9762\u5c31\u662f\u9879\u76ee\u8fd0\u884c\u8fc7\u7a0b\u4e2d&#xff0c;\u751f\u6210\u7684\u4e00\u4e9b\u4e34\u65f6\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u5176\u4e2d\u5c31\u4f1a\u6709makefile\u6587\u4ef6&#xff08;qmake &#043; pro\u751f\u6210&#xff09;\u3001ui_widget.h&#xff08;\u5185\u90e8\u5c31\u662f\u6839\u636exml\u751f\u6210\u7684\u4ee3\u7801&#xff09;&#xff0c;\u4ed6\u4eec\u90fd\u662f\u81ea\u52a8\u751f\u6210\u7684<\/li>\n<li>ui_widget.h\u672c\u8d28\u5c31\u662f\u6839\u636exml\u751f\u6210&#xff0c;\u4e5f\u5c31\u662f\u6700\u7ec8\u754c\u9762\u7684\u6548\u679c\u5c55\u793a\u7684\u5177\u4f53\u4ee3\u7801&#xff08;\u5177\u4f53\u903b\u8f91\u5982\u4e0b\u56fe&#xff09; <img decoding=\"async\" src=\"2025-06-21pft2xjji3ix.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5728Debug\u4e2d\u8fd8\u4f1a\u6709\u4e00\u4e2a .exe&#xff08;\u4ed6\u672c\u8d28\u5c31\u662f\u6211\u4eec\u751f\u6210\u53ef\u6267\u884c\u7a0b\u5e8f\u4e5f\u662f\u751f\u6210\u7684\u754c\u9762&#xff01;&#xff09;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<p>\u672c\u7ae0\u5b8c\u3002\u9884\u77e5\u540e\u4e8b\u5982\u4f55&#xff0c;\u6682\u542c\u4e0b\u56de\u5206\u89e3\u3002<\/p>\n<p>\u5982\u679c\u6709\u4efb\u4f55\u95ee\u9898\u6b22\u8fce\u8ba8\u8bba\u54c8&#xff01;<\/p>\n<p>\u5982\u679c\u89c9\u5f97\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u7684\u8bdd\u70b9\u70b9\u8d5e\u5427&#xff01;<\/p>\n<p>\u6301\u7eed\u66f4\u65b0\u5927\u91cfQT\u7ec6\u81f4\u5185\u5bb9&#xff0c;\u65e9\u5173\u6ce8\u4e0d\u8ff7\u8def\u3002<\/p>\n<p>\u200b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb6.2k\u6b21\uff0c\u70b9\u8d5e124\u6b21\uff0c\u6536\u85cf106\u6b21\u3002\u672c\u7ae0\u5c06\u5f00\u542fQt\u7684\u5b66\u4e60\uff0cQt\u662f\u4e00\u4e2a\u8f83\u4e3a\u53e4\u8001\u4f46\u4ecd\u7136\u5728GUI\u56fe\u5f62\u5316\u754c\u9762\u8bbe\u8ba1\u4e2d\u6709\u7740\u4e3e\u8db3\u8f7b\u91cd\u7684\u5730\u4f4d\uff0c\u56e0\u4e3a\u5b83\u9002\u5408\u5d4c\u5165\u5f0f\u548c\u591a\u79cd\u5e73\u53f0\u800c\u88ab\u5e7f\u6cdb\u4f7f\u7528\uff0c\u672c\u7ae0\u5c06\u5148\u4ece\u8ba4\u8bc6Qt\uff0c\u518d\u5230\u7406\u89e3Qt\u7684\u4f5c\u7528\u548c\u5730\u4f4d\uff0c\u518d\u5230Qt\u7684\u5b89\u88c5\u4e0b\u8f7d\uff0c\u4ee5\u53ca\u521b\u5efa\u597d\u4e00\u4e2aQt\u9879\u76ee\uff0c\u518d\u5230\u6700\u540e\u7684\u7406\u89e3Qt\u9879\u76ee\u4e2d\u63d0\u524d\u914d\u5907\u597d\u7684\u6587\u4ef6\uff0c\u5e26\u4f60\u5165\u95e8Qt\u9879\u76ee_c++ qt<\/p>\n","protected":false},"author":2,"featured_media":44763,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,218,190],"topic":[],"class_list":["post-44783","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-c","tag-qt","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010C++ Qt\u3011\u8ba4\u8bc6Qt\u3001Qt \u9879\u76ee\u642d\u5efa\u6d41\u7a0b\uff08\u56fe\u6587\u5e76\u8302\u3001\u901a\u4fd7\u6613\u61c2\uff09 - \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\/44783.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010C++ Qt\u3011\u8ba4\u8bc6Qt\u3001Qt \u9879\u76ee\u642d\u5efa\u6d41\u7a0b\uff08\u56fe\u6587\u5e76\u8302\u3001\u901a\u4fd7\u6613\u61c2\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb6.2k\u6b21\uff0c\u70b9\u8d5e124\u6b21\uff0c\u6536\u85cf106\u6b21\u3002\u672c\u7ae0\u5c06\u5f00\u542fQt\u7684\u5b66\u4e60\uff0cQt\u662f\u4e00\u4e2a\u8f83\u4e3a\u53e4\u8001\u4f46\u4ecd\u7136\u5728GUI\u56fe\u5f62\u5316\u754c\u9762\u8bbe\u8ba1\u4e2d\u6709\u7740\u4e3e\u8db3\u8f7b\u91cd\u7684\u5730\u4f4d\uff0c\u56e0\u4e3a\u5b83\u9002\u5408\u5d4c\u5165\u5f0f\u548c\u591a\u79cd\u5e73\u53f0\u800c\u88ab\u5e7f\u6cdb\u4f7f\u7528\uff0c\u672c\u7ae0\u5c06\u5148\u4ece\u8ba4\u8bc6Qt\uff0c\u518d\u5230\u7406\u89e3Qt\u7684\u4f5c\u7528\u548c\u5730\u4f4d\uff0c\u518d\u5230Qt\u7684\u5b89\u88c5\u4e0b\u8f7d\uff0c\u4ee5\u53ca\u521b\u5efa\u597d\u4e00\u4e2aQt\u9879\u76ee\uff0c\u518d\u5230\u6700\u540e\u7684\u7406\u89e3Qt\u9879\u76ee\u4e2d\u63d0\u524d\u914d\u5907\u597d\u7684\u6587\u4ef6\uff0c\u5e26\u4f60\u5165\u95e8Qt\u9879\u76ee_c++ qt\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/44783.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-20T22:05:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220505-6855db116c26f.png\" \/>\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\/44783.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/44783.html\",\"name\":\"\u3010C++ Qt\u3011\u8ba4\u8bc6Qt\u3001Qt \u9879\u76ee\u642d\u5efa\u6d41\u7a0b\uff08\u56fe\u6587\u5e76\u8302\u3001\u901a\u4fd7\u6613\u61c2\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-20T22:05:09+00:00\",\"dateModified\":\"2025-06-20T22:05:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/44783.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/44783.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44783.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010C++ Qt\u3011\u8ba4\u8bc6Qt\u3001Qt \u9879\u76ee\u642d\u5efa\u6d41\u7a0b\uff08\u56fe\u6587\u5e76\u8302\u3001\u901a\u4fd7\u6613\u61c2\uff09\"}]},{\"@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":"\u3010C++ Qt\u3011\u8ba4\u8bc6Qt\u3001Qt \u9879\u76ee\u642d\u5efa\u6d41\u7a0b\uff08\u56fe\u6587\u5e76\u8302\u3001\u901a\u4fd7\u6613\u61c2\uff09 - \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\/44783.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010C++ Qt\u3011\u8ba4\u8bc6Qt\u3001Qt \u9879\u76ee\u642d\u5efa\u6d41\u7a0b\uff08\u56fe\u6587\u5e76\u8302\u3001\u901a\u4fd7\u6613\u61c2\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb6.2k\u6b21\uff0c\u70b9\u8d5e124\u6b21\uff0c\u6536\u85cf106\u6b21\u3002\u672c\u7ae0\u5c06\u5f00\u542fQt\u7684\u5b66\u4e60\uff0cQt\u662f\u4e00\u4e2a\u8f83\u4e3a\u53e4\u8001\u4f46\u4ecd\u7136\u5728GUI\u56fe\u5f62\u5316\u754c\u9762\u8bbe\u8ba1\u4e2d\u6709\u7740\u4e3e\u8db3\u8f7b\u91cd\u7684\u5730\u4f4d\uff0c\u56e0\u4e3a\u5b83\u9002\u5408\u5d4c\u5165\u5f0f\u548c\u591a\u79cd\u5e73\u53f0\u800c\u88ab\u5e7f\u6cdb\u4f7f\u7528\uff0c\u672c\u7ae0\u5c06\u5148\u4ece\u8ba4\u8bc6Qt\uff0c\u518d\u5230\u7406\u89e3Qt\u7684\u4f5c\u7528\u548c\u5730\u4f4d\uff0c\u518d\u5230Qt\u7684\u5b89\u88c5\u4e0b\u8f7d\uff0c\u4ee5\u53ca\u521b\u5efa\u597d\u4e00\u4e2aQt\u9879\u76ee\uff0c\u518d\u5230\u6700\u540e\u7684\u7406\u89e3Qt\u9879\u76ee\u4e2d\u63d0\u524d\u914d\u5907\u597d\u7684\u6587\u4ef6\uff0c\u5e26\u4f60\u5165\u95e8Qt\u9879\u76ee_c++ qt","og_url":"https:\/\/www.wsisp.com\/helps\/44783.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-20T22:05:09+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620220505-6855db116c26f.png"}],"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\/44783.html","url":"https:\/\/www.wsisp.com\/helps\/44783.html","name":"\u3010C++ Qt\u3011\u8ba4\u8bc6Qt\u3001Qt \u9879\u76ee\u642d\u5efa\u6d41\u7a0b\uff08\u56fe\u6587\u5e76\u8302\u3001\u901a\u4fd7\u6613\u61c2\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-20T22:05:09+00:00","dateModified":"2025-06-20T22:05:09+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/44783.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/44783.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/44783.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010C++ Qt\u3011\u8ba4\u8bc6Qt\u3001Qt \u9879\u76ee\u642d\u5efa\u6d41\u7a0b\uff08\u56fe\u6587\u5e76\u8302\u3001\u901a\u4fd7\u6613\u61c2\uff09"}]},{"@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\/44783","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=44783"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44783\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/44763"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=44783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=44783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=44783"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=44783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}