{"id":285379,"date":"2023-10-21T20:04:49","date_gmt":"2023-10-21T12:04:49","guid":{"rendered":"https:\/\/lrxjmw.cn\/jyqrslxtxdqk.html"},"modified":"2023-10-21T20:04:49","modified_gmt":"2023-10-21T12:04:49","slug":"jyqrslxtxdqk","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/jyqrslxtxdqk.html","title":{"rendered":"\u57fa\u4e8e\u5d4c\u5165\u5f0fLinux\u7cfb\u7edf\u4e0b\u7684Qt\u5f00\u53d1\uff0823\u5377\uff09"},"content":{"rendered":"

\u7b2c23\u5377\u7b2cl\u671f\u7535\u8111\u5f00\u53d1\u4e0e\u5e94\u7528\u6587\u7ae0\u7f16\u53f7\uff1a1003\u20145850(2010)01\u2014001103\u57fa\u4e8e\u5d4c\u5165\u5f0fLinux<\/a>\u7cfb\u7edf<\/a>\u4e0b\u7684Qt\u5f00\u53d1DevelopmentofQtbasedonEmbeddedLinux\u738b\u6d69\u5357\u5218\u76ca\u6210(\u9ec4\u6cb3\u5b66\u9662\u7535\u5b50\u4fe1\u606f\u5927\u5b66\u6c5f\u897f\u4e5d\u6c5f434023)\u3010\u6458\u8981\u3011\u968f\u7740\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u53d1\u5c55\uff0c\u5728Iinux\u4e0b\u4f7f\u7528Qt\u5f00\u53d1\u5d4c\u5165\u5f0f\u56fe\u5f62\u7528\u6237\u754c\u9762\u662f\u5d4c\u5165\u5f0f\u5e94\u7528\u7684\u91cd\u70b9\u3002\u6211\u4eec\u901a\u8fc7\u5b9e\u4f8b\uff0c\u63a2\u8ba8\u4e86\u57fa\u4e8e\u5d4c\u5165\u5f0fIinux\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u8fc7\u7a0b\u5e76\u5177\u4f53\u63cf\u8ff0Qt\uff0fEmbedded\u56fe\u5f62\u7cfb\u7edf\u7684\u79fb\u690d\u3002\u3010\u5173\u952e\u8bcd\u3011Qt\uff0cLinux\uff0c\u5d4c\u5165\u5f0f\u7cfb\u7edf\uff0c\u56fe\u5f62\u754c\u9762\u5f00\u53d1\uff0c\u79fb\u690d\u4e2d\u56fe\u5206\u7c7b\u53f7\uff1aTP391\uff0e4l\u6587\u732e\u6807\u8bc6\u7801\uff1aAABSTRACTWiththerapiddevelopmentofembeddedtechnologies\uff0ctOdevelopGraphicalUserinterfaceusingQtonIinuxisafocalpointofembeddedapplication\uff0eWiththedevelopmentexample\u3002<\/p>\n

thepaperintroducesgraphicalinterfacedevelopmentprogrammingmethodsbasedonembeddedI,inux\u3002anddescribesthetransplantingofQt\uff0fEmbeddedgraphicalsystem\uff0eKEYWORDSQt\uff0cLinux\uff0cembeddedsyslenl_\uff0cgraphicalinterfacedevelopment\uff0ctransplanting\u968f\u7740\u8ba1\u7b97\u673a\u6280\u672f\u548c\u4fe1\u606f\u7f51\u8def\u6280\u672f\u7684\u6025\u901f\u53d1\u5c55\uff0c\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u5e94\u7528\u8d8a\u6765\u8d8a\u5e7f\u6cdb\uff0c\u800c\u5d4c\u5165\u5f0f\u4ea7\u54c1\u4ee5\u5176\u7cbe\u5de7\u3001\u4f7f\u7528\u4fbf\u6377\u3001\u5b9e\u7528\u7b49\u7279\u6027\u8d8a\u6765\u8d8a\u906d\u5230\u4eba\u4eec\u7684\u504f\u7231\u3002\u975e\u5e38\u662f\u8fd1\u51e0\u5e74\u6765\uff0c\u5d4c\u4eba\u5f0f\u6280\u672f\u8d8a\u6765\u8d8a\u591a\u7684\u88ab\u5e94\u7528\u4e8e\u5404\u4e2a\u9886\u57df\uff0c\u5982\u56fd\u9632\u3001\u5de5\u4e1a\u63a7\u5236\u3001\u901a\u4fe1\u3001\u529e\u516c\u624b\u52a8\u5316\u548c\u6d88\u8d39\u7535\u5b50\u9886\u57df\u7b49\u3002\u4e3a\u6b64\u8bbe\u8ba1\u51fa\u5e26\u6709\u56fe\u5f62\u7528\u6237\u754c\u9762\u3001\u64cd\u4f5c\u4fbf\u6377\u7684\u5d4c\u5165\u5f0f\u667a\u80fd\u7ec8\u7aef\u63a7\u5236\u7cfb\u7edf\u5219\u5177\u6709\u5f88\u9ad8\u7684\u5b9e\u7528\u4ef7\u503c\u548c\u7814\u7a76\u4ef7\u503c\u3002\u672c\u6587\u5c31\u662f\u4ecb\u7ecd\u600e\u6837\u5728\u5d4c\u5165\u5f0fLinux\u4e0b\u8fdb\u884cQt\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u7684\u95ee\u9898\u30021\u7cfb\u7edf\u5e73\u53f0\u7684\u5efa\u7acb\u6309\u7167\u8bbe\u8ba1\u987b\u8981\uff0c\u672c\u6587\u642d\u5efa\u7684\u7cfb\u7edf\u5e73\u53f0\u57fa\u672c\u6846\u67b6\u4e3a\uff1a\u786c\u4ef6\u4e0a\u91c7\u7528\u57fa\u4e8eSansung$3C2410CPU\u7684\u76ee\u6807\u677f\uff1b\u5728\u8f6f\u4ef6\u4e0a\uff0c\u9009\u62e9\u5d4c\u5165\u5f0fLinux\u4e3a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6574\u4e2a\u7cfb\u7edf\u8f6f\u4ef6\u7531\u5f15\u5bfc\u7a0b\u5e8f(ViVi\u516c\u53f8\u7684bootLoader)\u3001\u8bbe\u5907\u9a71\u52a8\u3001\u5d4c\u5165\u5f0fLinux\u5185\u6838\u3001\u6587\u4ef6\u7cfb\u7edf(cramfs)\u3001\u57fa\u4e8eQt\uff0fEmbedded\u548cQtopia\u7684\u7528\u6237\u56fe\u5f62\u754c\u9762\u53ca\u5e94\u7528\u7a0b\u5e8f\u7ec4\u6210\u3002<\/p>\n

2Qt\u3001Embedded\u7684\u4ecb\u7ecd\u4e0e\u5728Iinux\u4e2d\u5f00\u53d1\u73af\u5883\u7684\u6784\u5efa2\uff0e1\u6709\u5173Qt\u3001Qt\uff0fEmbedded\u548cQtopiaQt\u8db3\u4e00\u4e2a\u5168\u9762\u7684C++\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u6846\u67b6\u3002\u5b83\u5305\u542b\u4e00\u4e2a\u6cdb\u578b\uff0c\u548c\u7528\u4e8e\u8de8\u5e73\u53f0\u5f00\u53d1\u53ca\u56fd\u9645\u5316\u7684\u5de5\u5177\u3002\u7531\u632a\u5a01Trolhech\u516c\u53f8\u63a8\u51fa\uff0c\u4e3b\u8981\u901a\u8fc7\u6c47\u96c6(++\u7c7b\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u63d0\u4f9b\u5f00\u53d1\u5e94\u7528\u7a0b\u5e8f\u7528\u6237\u754c\u9762\u90e8\u4efd\u7684\u9700\u6c42\u3002Qt\uff0fEmbedded\u662f\u4e00\u4e2a\u4e3a\u5d4c\u5165\u5f0f\u8bbe\u5907\u4e0a\u7684\u56fe\u5f62\u7528\u6237\u63a5\u53e3\u548c\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u800c\u5b9a\u5236\u7684C\u6597I+\u5de5\u5177\u5f00\u53d1\u5305\u3002\u662f\u4e00\u7ec4\u7528\u4e8e\u8bbf\u95ee\u5d4c\u5165\u5f0f\u8bbe\u5907\u7684QtC\u2014q-\u4e00f-API\u3002\u5b83\u53ef\u4ee5\u8fd0\u884c\u5728\u591a\u79cd\u4e0d\u540c\u7684\u5904\u7406\u5668\u4e0a\u5e03\u7f72\u7684\u5d4c\u5165\u5f0fIinux\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u3002Qtopia\u662fTrolhech\u516c\u53f8\u4e3a\u91c7\u7528Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u6d88\u8d39\u7535\u5b50\u8bbe\u5907\u800c\u5f00\u53d1\u7684\u7efc\u5408\u5e94\u7528\u5e73\u53f0\u3002Qtopia\u5305\u62ec\u5b8c\u6574\u7684\u5e94\u7528\u5c42\u3001\u7075\u6d3b\u7684\u7528\u6237\u754c\u9762\u3001\u7a97\u53e3\u64cd\u4f5c\u7cfb\u7edf\u3001\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u7a0b\u5e8f\u4ee5\u53ca\u5f00\u53d1\u6846\u67b6\u30022\uff0e2Qt\uff0fEmbedded\u5f00\u53d1\u73af\u5883\u7684\u6784\u5efa\u6253\u7b97\u4ee5\u4e0b\u6e90\u7801\u5305\u548c\u6587\u4ef6\u2460tmake\u4e001\uff0e11\uff0etar\uff0egz(\u7528\u4e8e\u751f\u6210Makefile\u6587\u4ef6\u8f85\u52a9\u5de5\u5177)\u2461qt\u2014embedded2\uff0e3\uff0e7\uff0etar\uff0egz(Qtopia\u6784\u5efa\u7684\u57fa\u7840)\u2467qt\u2014xl1\u20142\uff0e3\uff0e2\uff0etar\uff0egz(\u7528\u4e8e\u751f\u6210moc\u548cuic\u4e24\u4e2a\u5de5\u5177)\u2463qtopiafree1\uff0e7\uff0e0\uff0etar\uff0ebz2(Qtopia\u6e90\u4ee3\u7801\u5305)\u2464cross\uff5e3\uff0e3\uff0e2\uff0etar\uff0ebz2(\u4ea4\u53c9\u7f16\u8bd1\u5668)\u5f00\u53d1\u73af\u5883\u6784\u5efa\u8fc7\u7a0b\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55\uff1a\uff0fusr\uff0flocal\uff0farm\uff0fQT\uff0c\u5e76\u5c06\u91cc\u9762\u76845\u4e2a\u6e90\u7801\u5305\u653e\u5728\uff0fusr\uff0flocal\uff0farm\uff0fQT?\uff0fF{\u5f55\u4e0btmake\u7684\u5b89\u88c5#tarzxvftmake\u4e001\uff0e11\uff0etar\uff0egz#cdtmake\uff0e\uff0e1\uff0e]l\u6784\u5efashell\u6587\u4ef6\uff0c\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\u5d4c\u5165\u5f0flinux\u4e0b\u754c\u9762\u5f00\u53d1<\/strong>\uff0c\u64cd\u4f5c\u4e3a\u6253\u5f00\u7ec8\u7aef\u3002<\/p>\n

\u8f93\u5165\uff1a#vienv\uff0eshexport~\u3001MAKEDIR====$PWD*200909\u201410\u6536\u5230\uff0c2009\u201411\u201410\u6539\u56de**\u57fa\u91d1\u9879\u76ee\uff1a\u4e2d\u56fd\u77f3\u6cb9\u5929\u7136\u6c14\u96c6\u56e2\u516c\u53f8\u91cd\u5927\u79d1\u6280\u3005\u9879\u6350\u52a9\u9879\u76ee(I)6(10302)\u3002***\u738b\u6d69\u5357\uff0e\u7537\u30021984\u5e74\u751f\uff0e\u7855\u7814\u7a76\u751f\uff0e\u7814\u7a76\u65b9\u5411\uff1a\u5165\u300f\u2103\u7cfb\u7edf\u3002\u00b712\u00b7(\u603b16)\u57fa\u4e8e\u5d4c\u5165\u5f0fLinux\u7cfb\u7edf\u4e0b\u7684Qt\u5f00\u53d12010\u6b63exportTMAKEPATH=$TMAKEDlR\uff0f1ib\uff0fqws\uff0flinuxarm\uff5eg+\u2014+_exportPATH\u4e00$TMAKEDIR\uff0fbin\uff1a$PATH\u4fdd\u5b58\u9000\u51fa\u3002\u5e76\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\u5982\u4e0b#sourceenv\uff0esh\u2461QtXJl\u7684\u5b89\u88c5#tar\u2014vxzfqt\u2014xl1-2\uff0e3\uff0e2\uff0etar\uff0egz#cdqt\u4e002\uff0e3\uff0e2#vienv\uff0esh(\u64cd\u4f5c\u540c\u4e0a\u4e0a\u5236env\uff0esh\u6587\u4ef6\u65b9\u5f0f)exportQTDIR\u4e00$PWDexportPA'I\u3001H\u4e00$QTDIR\uff0fbin\uff1a$PATHexportIDLIBRARYPATH\u4e00$QTDIR\uff0flib\uff1a$LDIIBRARYPATH\u4fdd\u5b58\u9000\u51fa\u3002\u5e76\u6dfb\u52a0\u73af\u5883\u53d8\u91cf#soureeenv\uff0esh\u751f\u6210Makefile\u540e\uff0c\u5c31\u53ef\u4ee5\u8fdb\u884c\u5b89\u88c5#make\u5b89\u88c5\u6210\u529f\u540e\uff0c\u5c06\u4f1a\u6709\u4ee5\u4e0b\u590d\u5370\u4fe1\u606f\uff1aEnjoy!\u4e00theTrolhechteam\u7f16\u8bd1\u751f\u6210qvfb\u3001qembed\u5de5\u5177#make\u2014Ctools\uff0fqvfb#make\u2014Ctools\uff0fqembed\u2462Qt\uff0fEmbedded\u5b89\u88c5#cdusr\uff0flocal\uff0farm#mkdir3\uff0e3\uff0e2#tarzxvfcross\u4e003\uff0e3\uff0e2\uff0etar\uff0ebz2#cdusr\uff0flocal\uff0farm\uff0fQT#tarzxvfqtembedded\u4e002\uff0e3\uff0e7\uff0etar\uff0egz\u6b65\u5165\u8f6f\u4ef6\u5305\u4e2d\u5e76\u8bbe\u7f6e\u4e00\u4e9b\u73af\u5883\u53d8\u91cf\uff1a#cdqt\u4e002\uff0e3\uff0e7#exportPATH=\uff0fusr\uff0floeal\uff0farm\uff0f3\uff0e3\uff0e2\uff0fbin\uff1a$PATH#exportQTDIR\u4e00$PWD#exportQTEDIR\u4e00$QTDIR\u5728qconfig\u2014loca1\uff0e\u8089\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e00\u884c\uff1a#defineQTQWSIPAQRAW\u6dfb\u52a0\u5b8c\u4ee5\u540e\u5c06\u8be5\u6587\u4ef6\u62f7\u8d1d\u5230src\uff0ftools\uff0f\u76ee\u5f55#ep\uff0fqconfig\u2014loca1\uff0ehsrc\uff0ftools\uff0f\u5c06qt\u4e002\uff0e3\uff0e2\u6e90\u7801\u7f16\u8bd1\u540e\u7684uic\u5de5\u5177\u62f7\u8d1d\u5230bin\u76ee\u5f55#cpqt\u4e002\uff0e3\uff0e2\uff0fbin\uff0fuic\uff0e\uff0fbin\u4ea4\u53c9\u7f16\u8bd1\uff0c\u8bbe\u7f6e\u7f16\u8bd1\u9009\u9879\uff1a#\uff0e\uff0fconfigure\u2014xplatformlinux\u2014arm\u2014g++\u4e00sharedqconfiglocal\u2014qvfb\u2014depths4\uff0c8\uff0c16\uff0c32\u4e00gif\u2014system\u2014jpeg\u751f\u6210Makefile\u4ee5\u540elinux\u547d\u4ee4tar\uff0c\u5c31\u53ef\u4ee5\u8fdb\u884c\u7f16\u8bd1\u4e86\uff1a#make\u2463qtopia\u7684\u5b89\u88c5#tarzxvfqtopia\u2014free\u20141\uff0e7\uff0e0\uff0etar\uff0egz\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a#exportQTDIR=$QTEDIR#exportQPEDIR\u4e00$PWD#exportPATH\u4e00$QPEDIR\uff0fbin\uff0f\uff1a$PATH\u63a5\u51fa\u6765\u5c31\u53ef\u4ee5\u914d\u7f6e\u4e86\uff1a#cdsrc\uff0f#\uff0e\uff0fconfigure\u2014platformlinux\u2014arm\u2014g++\u751f\u6210Makefile\u4ee5\u540e\uff0c\u5c31\u53ef\u4ee5\u8fdb\u884c\u7f16\u8bd1\u4e86\uff1a#make\u4ee5\u4e0a\u8fc7\u7a0b\u7f16\u8bd1\u901a\u8fc7\u540e\uff0cQt\uff0fEmbedded\u5f00\u53d1\u73af\u5883\u5df2\u7ecf\u5b8c\u5584\uff0c\u800c\u4e14Qt\uff0fEmbedded\u548cQtopia\u9762\u5411\u76ee\u6807\u673a\u7684\u4ea4\u53c9\u7f16\u8bd1\u73af\u5883\u4e5f\u5efa\u7acb\u5b8c\u6210\uff0c\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfset\u2014env\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528Qt\u6765\u8fdb\u884c\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e86\u3002<\/p>\n

\u5d4c\u5165\u5f0flinux\u5f00\u53d1\u89c6\u9891\u6559\u7a0b_\u5d4c\u5165\u5f0flinux\u4e0b\u754c\u9762\u5f00\u53d1_\u5d4c\u5165\u5f0flinux\u56fe\u5f62\u754c\u9762\u5f00\u53d1<\/p>\n

3\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u4e00\u4e2a\u5c0f\u7684Qt\u5b9e\u4f8b\u4e00\u7b80\u5355\u4f30\u7b97\u5668\u56fe1\uff0c\u56fe2\u5206\u522b\u4e3a\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u6d41\u7a0b\u56fe\u548c\u52fe\u753b\u7684\u7b80\u5355\u4f30\u7b97\u5668\u56fe\u5f62\u754c\u9762\u3002I\u7a0b\u5e8f\u5165Vl\u70b9\uff0e\uff0fDesigner1\u65b0\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3(\u9009\u62e9widgets)\u00f7f\u663e\u793a\u6240\u521b\u5efa\u7684\u7a97\u53e3fl\u4e00\u22ef\u22ef\u4e00\u22efV\u751f\u6210\u7a97\u4f53\u7c7b\u7684\u5934\u6587\u4ef6\u548c\u73b0\u5b9e\u6587\u4ef6(\u501f\u52a9ut\u5de5\u5177)\u25cfI\u5728\u5934\u6587\u4ef6\uff0c\u51fd\u6570\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee3\u7801tl\u66fc\u572d\u91cc\u58bc\u7afa!}V\u751f\u6210\u9879\u76ee\u5de5\u7a0b\u6587\u4ef6\u5973Pro(\u7531progen\u547d\u4ee4<\/a>)\u56fe1\u56fe\u5f62\u7528\u6237\u754c\u9762\u5f00\u53d1\u6d41\u7a0b3\uff0e1\u6784\u5efa\u7a97\u4f53QtDesigner\u8bbe\u8ba1\u5668\u662f\u4e00\u4e2a\u5177\u6709\u53ef\u89c6\u5316\u7528\u6237\u63a5\u53e3\u7684\u8bbe\u8ba1\u5de5\u5177\uff0c\u5728\u5b89\u88c5Qt\u7684bin\u76ee\u5f55\u4e0b\u952e\u5165\uff0e\uff0fdesigner\uff0c\u5c06\u542f\u52a8\u4e00\u4e2a\u5305\u542b\u5f88\u591aQt\u7ec4\u4ef6\u7684\u53ef\u89c6\u5316\u754c\u9762\uff0c\u4f7f\u7528C++\u8bed\u8a00\u7f16\u64b0\uff0c\u5b9e\u4f8b\u4f7f\u7528\u5728Linux\u4e0b\u81ea\u5e26\u7684QtDesigner\u8bbe\u8ba1\u5668\u5f00\u53d1GUI\u3002\u6253\u5f00QtDesigner\uff5eFile\uff0fnew\u65b0\u5efa\u4e00\u56fe2\u52fe\u753b\u7684\u56fe\u5f62\u754c\u9762\u4e2a\u90e8\u4ef6(\u5982Forma)\u9009\u62e9Widgets\u5bf9\u8bdd\u6846\uff0c\u56fe\u5f62\u754c\u9762\u540c\u65f6\u5305\u542b\u6709\u5bf9\u8bdd\u6846\u548c\u4e3b\u7a97\u53e3\uff0c\u5176\u4e2d\u4e3b\u7a97\u53e3\u53ef\u4ee5\u653e\u7f6e\u83dc\u5355\u3001\u5de5\u5177\u680f\u3001\u65c1\u8ff0\u5e2e\u52a9\u7b49\u5b50\u7a97\u53e3\u90e8\u4ef6\u3002<\/p>\n

3\uff0e2\u751f\u6210\u5934\u6587\u4ef6\uff0c\u5b9e\u73b0\u6587\u4ef6\u548c\u4e3b\u51fd\u6570\u7ecf\u8fc7\u754c\u9762\u8bbe\u8ba1\u540e\u4fdd\u6301\u6587\u4ef6test\uff0eui\uff0c\u8be5\u6587\u4ef6\u65f6XML\u8bed\u8a00\u5199\u7684\u4e00\u4e2a\u6587\u672c\u3002\u501f\u52a9uic\u5de5\u5177\u5c31\u53ef\u4ee5\u6309\u7167test\uff0eui\u6587\u4ef6\u751f\u6210test\uff0eh\u548ctest\uff0ecpp\u3002\u7b2c23\u5377\u7b2c1\u671f\u7535\u8111\u5f00\u53d1\u4e0e\u5e94\u7528(\u603b17)\u00b713\u00b7uic\u2014Otest\uff0ehtest\uff0euiuic\u2014Otest\uff0ecpp\u2014impltest\uff0ehtest\uff0eui\u751f\u6210\u7684\u6587\u4ef6\u53ef\u901a\u8fc7vitest\uff0ecpp\u548cvitest\uff0eh\u89c1\u5230\u521a\u624d\u751f\u6210\u7684\u4ee3\u7801\uff0c\u5206\u522b\u5728test\uff0eh\u548ctest\uff0ecpp\u6dfb\u52a0\u7c7b\u5bf9\u8c61\u548c\u5b9e\u73b0\u51fd\u6570\u3002\u5728test\uff0eh\u4e2d\u6dfb\u52a0\u6210\u5458\u51fd\u6570privateslots\uff1avoidval1()\uff1bvoidval2()\uff1bvoidval3()\uff1bvoidadd()\uff1bvoidf\u00fa()\uff1aPrlvate\uff1adoublenum1\uff1bdoublenum2\uff1bboolflag\uff1b\u5728test\uff0ecpp\u4e2d\u6dfb\u52a0\u51fd\u6570nunl1\u20140\uff1bnum2\u20140\uff1aflag\u4e000\uff1bconnect(Button1\uff0eSIGNAL(clicked())\uff0cthis\uff0cSIOT(val1()))\uff1bconnect(Button2\uff0cSIGNAI(clicked())\uff0cthis\uff0cSI()T(val2()))\uff1bconnect(Button3\uff0cSIGNAL(clicked())\uff0cthis\uff0cSIOT(va13()))\uff1bconnect(Button\u2014add\uff0cSIGNA1(clicked())\uff0cthis\uff0cSI()T(add()))\uff1aconnect(Button\u2014cheng\u3002<\/p>\n

\u5d4c\u5165\u5f0flinux\u56fe\u5f62\u754c\u9762\u5f00\u53d1_\u5d4c\u5165\u5f0flinux\u5f00\u53d1\u89c6\u9891\u6559\u7a0b_\u5d4c\u5165\u5f0flinux\u4e0b\u754c\u9762\u5f00\u53d1<\/p>\n

SIGNAl(clicked())\u5d4c\u5165\u5f0flinux\u4e0b\u754c\u9762\u5f00\u53d1<\/strong>\uff0cthis\uff0cSI()T(f\u00fa()))\uff1bconnect(Buttonok\uff0cSIGNAI(clicked())\uff0cthis\uff0cSIOT(ok()))\uff1b\u7f16\u64b0Button\u2014add\uff0cButton\u2014cheng\uff0cButton\u4e000k\u51fd\u6570\u7f16\u64b0main()\u4e3b\u51fd\u6570\uff0f\uff0fmain\uff0ecpp#includeshow()\uff1breturnapp\uff0eexec()\uff1b}\u5e94\u7528\u7a0b\u5e8f\u7f16\u64b0\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u65bd\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b8c\u6210\u7a0b\u5e8f\u7684\u7f16\u8bd1\uff1aprogen\u2014tapp\u00b7t\u2014Otest\u00b7protmake\u2014OMakefiletest\uff0epromake4Qt\uff3cEmbedded\u7684\u79fb\u690dQt\uff3cEmbedded\u5e94\u7528\u5230S3C2410\u5f00\u53d1\u677f\u3002\u9996\u5148\u628aQt\uff3cEmbedded\u4e8c\u8865\u7801\u5e93\u548c\u5e94\u7528\u7a0b\u5e8f\u7684\u4e8c\u8865\u7801\u4ee3\u7801\u590d\u5236\u5230\u67d0\u4e2a\u76ee\u5f55\u4e0b\uff0c\u4e4b\u540e\u628a\u8fd9\u4e2a\u76ee\u5f55\u5236\u6210\u67d0\u79cd\u7c7b\u578b\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\uff0c\u6700\u540e\u628a\u8fd9\u4e2a\u6839\u6587\u4ef6\u7cfb\u7edf\u70e7\u8bb2\u5230$3C2410\u7684Flash\u50a8\u5b58\u5668\u4e0a\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u80fd\u987b\u8981\u4e00\u4e9b\u5236\u505a\u6839\u6587\u4ef6\u7cfb\u7edf\u7684\u5de5\u5177linux\u64cd\u4f5c\u7cfb\u7edf\u754c\u9762\uff0c\u5982mkcramfs\u30025\u7ed3\u675f\u8bed\u968f\u7740\u5d4c\u5165\u5f0f\u5904\u7406\u5668\u8fd0\u7b97\u80fd\u529b\u7684\u4e0d\u65ad\u589e\u5f3a\u4ee5\u53ca\u5bf9\u5916\u8bbe\u652f\u6301\u7684\u4e0d\u65ad\u4e30\u5bcc\uff0c\u5d4c\u4eba\u5f0fLinux\u7cfb\u7edf\u7684\u5e94\u7528\u9010\u6b65\u589e\u591a\u3002<\/p>\n

Qt\uff3cEmbedded\u5ef6\u7eed\u4e86Qt\u5728\u684c\u9762\u7cfb\u7edf\u7684\u6240\u6709\u529f\u80fd\uff0c\u4e30\u5bccAPI\u63d2\u53e3\u548c\u7ed9\u4e0e\u7ec4\u4ef6\u7684\u7f16\u7a0b\u6a21\u578b\u4fc3\u4f7f\u5d4c\u5165\u5f0fLinux\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u6108\u53d1\u4fbf\u6377\u3002\u56e0\u4e3aQt\uff3cEmbedded\u672c\u8eab\u9762\u5411\u4f4e\u7aef\u7684\u624b\u6301\u5f0f\u8bbe\u5907\u548c\u8054\u901a\u8bbe\u5907\uff0c\u5c06\u6210\u4e3a\u672a\u6765\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u4e3b\u6d41\u3002\u8fd9\u79cd\u5e94\u7528\u7684\u5173\u952e\u5728\u4e8e\u4eba\u673a\u4ea4\u6362\u6280\u672f\u7684\u5f70\u663e\uff0c\u6240\u4ee5\u4e00\u4e2a\u975e\u5e38\u53cb\u597d\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762(GUI)\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u3002\u672c\u6587\u8be6\u5c3d\u4ecb\u7ecd\u4e86Qt\uff3cEmbedded\u5f00\u53d1\u73af\u5883\u7684\u6784\u5efa\u8fc7\u7a0b\u548c\u57fa\u4e8eQt\uff3cEmbedded\u5f00\u53d1\u5e94\u7528\u7a0b\u5e8f\u7684\u65b9\u5f0f\u4ee5\u53ca\u5c06\u73b0\u6709\u7684\u5e94\u7528\u7a0b\u5e8f\u79fb\u690d\u8fdbQtopia\u7684\u5177\u4f53\u8fc7\u7a0b\uff0c\u4e3a\u7c7b\u4f3c\u7684\u7cfb\u7edf\u5f00\u53d1\u63d0\u4f9b\u4e86\u4e00\u4e2a\u53c2\u8003\u3002[1][2][33E43E5][6][7][8]\u53c2\u8003\u6587\u732e\u9648\u7426\uff0eQT\u7684\u7f16\u7a0b\u6280\u672f\u53ca\u5e94\u7528[J]\uff0e\u79d1\u6280\u4fe1\u606f\uff0c2008(33)\uff1a503\u2014504\uff0e\u674e\u51e1\uff0eQt\uff3cEmbedded\u5728\u5d4c\u5165\u5f0fIinux\u7cfb\u7edf\u4e0b\u7684\u79fb\u690d\u4e0e\u5e94\u7528[J]\uff0e\u79d1\u6280\u4fe1\u606f\uff0c2006\uff0c16(7)\uff1a79\u201480\uff0e\u5f20\u82b3\u8f89\uff0c\u738b\u5efa\u7fa4\uff0eQt\uff3cEmbedded\u5728\u5d4c\u5165\u5f0fLinux\u4e0a\u7684\u79fb\u690dl-J]\uff0e\u8ba1\u7b97\u673a\u6280\u672f\u4e0e\u53d1\u5c55\uff0c2006\uff0c16(7)\uff1a64\u201466\uff0e\u4f55\u5251\u950b\uff0c\u90ac\u6587\u5f6a\uff0c\u674e\u5b8f\u7a46\u7b49\uff0e\u5d4c\u5165\u5f0fLinux\u7cfb\u7edf\u7684Qt\uff3cEmbedded\u56fe\u5f62\u754c\u9762\u5f00\u53d1[J]\uff0e\u7535\u5b50\u5de5\u7a0b\u5e08\uff0c2007(33)\uff1a46\u201448\uff0e\u738b\u81ea\u5f3a\uff0c\u5218\u6d77\u71d5\uff0c\u674e\u5a9b\u6d32\uff0eIinux\u4e0b\u56fe\u5f62\u7528\u6237\u754c\u9762\u7a0b\u5e8f\u7684\u5f00\u53d1\u4e0e\u5b9e\u73b0\u300eJ]\uff0e\u8ba1\u7b97\u673a\u5e94\u7528\u4e0e\u8f6f\u4ef6\uff0c2005\uff0c22(6)\uff1a81\u201483\uff0e\u5218\u6ce2\uff0c\u5468\u514b\u8d35\uff0e\u57fa\u4e8eQt\uff3cEmbedded\u548cIinux\u7684\u5d4c\u5165\u5f0fGUI\u7684\u7814\u7a76\u4e0e\u5b9e\u73b0[J]\uff0e\u4eea\u5668\u4eea\u8868\u7528\u6237\uff0c2007\uff0c14(6)\uff1a192O\uff0e\u5b59\u5929\u6cfd\uff0c\u8881\u6587\u83ca\uff0c\u5f20\u6d77\u5cf0\uff0e\u5d4c\u5165\u5f0f\u8bbe\u8ba1\u53caLinux\u9a71\u52a8\u5f00\u53d1\u624b\u518c[M]\uff0e\u4e0a\u6d77\uff1a\u7535\u5b50\u5de5\u4e1a\u51fa\u7248\u793e\uff0c2005\uff0e\u674e\u5b8b\u741b\u4e3b\u7f16\uff0eLinux\u9762\u5411\u5bf9\u8c61\u7a97\u53e3\u4e2d\u7ea7\u7f16\u7a0b[M]\uff0e\u5317\u4eac\uff1a\u79d1\u5b66\u51fa\u7248\u793e\uff0c2001\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"

Qt\u5f00\u53d1\u5d4c\u5165\u5f0f\u56fe\u5f62\u7528\u6237\u754c\u9762\u662f\u5d4c\u5165\u5f0f\u5e94\u7528\u7684\u91cd\u70b9\u3002\u5f62\u754c\u9762\u5f00\u53d1\u7684\u95ee\u9898\u3002\u542b\u4e00\u4e2a\u7c7b\u5e93\uff0c\u548c\u7528\u4e8e\u8de8\u5e73\u53f0\u5f00\u53d1\u53ca\u56fd\u9645\u5316\u7684\u5de5\u5177\u3002\u6765\u5b9e\u73b0\u63d0\u4f9b\u5f00\u53d1\u5e94\u7528\u7a0b\u5e8f\u7528\u6237\u754c\u9762\u90e8\u5206\u7684\u9700\u6c42\u3002\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u800c\u5b9a\u505a\u7684C\u6597I+\u5de5\u5177\u5f00\u53d1\u5305\u3002Qt\u6765\u8fdb\u884c\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e86\u3002Linux\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u66f4\u52a0\u65b9\u4fbf\u3002\u4e3a\u672a\u6765\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u4e3b\u6d41\u3002<\/p>\n","protected":false},"author":1,"featured_media":285380,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-285379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/285379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=285379"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/285379\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/285380"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=285379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=285379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=285379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}