锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲二区在线观看,在线电影国产精品,亚洲人成网站999久久久综合http://www.shnenglu.com/cc/category/4796.html鍗婁憨鏂瑰 澶╁厜浜戝獎zh-cnTue, 13 Nov 2012 16:31:46 GMTTue, 13 Nov 2012 16:31:46 GMT60Qt紼嬪簭Release妯″紡緙栬瘧http://www.shnenglu.com/cc/archive/2012/11/12/195075.html鍖楅涔嬬007鍖楅涔嬬007Mon, 12 Nov 2012 06:01:00 GMThttp://www.shnenglu.com/cc/archive/2012/11/12/195075.htmlhttp://www.shnenglu.com/cc/comments/195075.htmlhttp://www.shnenglu.com/cc/archive/2012/11/12/195075.html#Feedback0http://www.shnenglu.com/cc/comments/commentRss/195075.htmlhttp://www.shnenglu.com/cc/services/trackbacks/195075.html   鍦↙inux涓嬬敤Qt寮鍙戜簡涓浜涚晫闈㈢殑紼嬪簭錛岀紪璇戝嚭鏉ョ粨鏋滄瘮杈冨ぇ錛屾湁鐨勯兘涓婄櫨鍏嗭紝鏌ヤ簡涔嬪悗鎵嶇煡閬撶紪璇戝嚭鏉ョ殑紼嬪簭涓嶆槸release妯″紡鐨勶紝鎴戜滑闇瑕佸湪pro鏂囦歡涓鍔犵紪璇戞寚浠わ紝鐢╮elease妯″紡緙栬瘧錛屾晥鐜囨柟闈㈡病鏈夊仛嫻嬭瘯錛屼笉榪囩▼搴忎綋縐彧鏄箣鍓嶇殑鍗佸垎涔嬩竴錛屾甯鎬簡寰堝銆?br />
鍏跺疄鎴戜滑瑕佸仛鐨勪笉澶氾紝鍙鍦╬ro鏂囦歡涓鍔犱互涓嬬殑閫夐」鍗沖彲錛岃繖鏍峰氨鍙互release妯″紡緙栬瘧浜嗐?br />
CONFIG+=  release


鍖楅涔嬬007 2012-11-12 14:01 鍙戣〃璇勮
]]>
Linux涓婹T紼嬪簭瀛椾綋璁懼畾閿欒閫犳垚紼嬪簭涓枃涔辯爜http://www.shnenglu.com/cc/archive/2010/09/25/127673.html鍖楅涔嬬007鍖楅涔嬬007Sat, 25 Sep 2010 14:37:00 GMThttp://www.shnenglu.com/cc/archive/2010/09/25/127673.htmlhttp://www.shnenglu.com/cc/comments/127673.htmlhttp://www.shnenglu.com/cc/archive/2010/09/25/127673.html#Feedback0http://www.shnenglu.com/cc/comments/commentRss/127673.htmlhttp://www.shnenglu.com/cc/services/trackbacks/127673.html   鏈榪戝湪Linux鐜涓嬪啓QT鐨勭▼搴忥紝鍦ㄦ垜鐨勬祴璇曟満鍣ㄤ笂闈T紼嬪簭錛屽湪鍚姩鐨勬椂鍊欒瀹氫簡瀛楃闆嗕負(fù)GBK錛屼腑鏂囬兘鏄樉紺烘甯哥殑錛屾病鏈変換浣曢棶棰橈紝鐒跺悗鍚屽鍦ㄤ粬鐨勮櫄鎷熸満涓婇潰涔熷啓浜哘T紼嬪簭錛屽彲浠ユ庝箞寮勪腑鏂囬兘鏄貢鐮侊紝浠涔圙BK錛孶TF-8絳夌瓑鐨勭紪鐮侀兘璁懼畾浜嗭紝鍙槸渚濈劧涔辯爜錛屽垎鏋愯繖縐嶆儏鍐靛簲璇ヤ笉鏄▼搴忕殑闂錛屽緢鍙兘鏄疩T瀛椾綋鐨勯棶棰橈紝浜庢槸鍦ㄥ懡浠よ杈撳叆qtconfig錛屽叾浠栦簡qt閰嶇疆紼嬪簭錛屽湪鍏朵腑璁懼畾浜嗗叾浠栫殑瀛椾綋錛屽彂鐜扮▼搴忕殑涓枃灝辮兘姝e父鏄劇ず浜嗐?br>
  鍥犳錛屾湁鏃跺欑▼搴忔病鏈夐棶棰樹簡錛屼絾鏄疩T鐨勫瓧浣撹瀹氶敊璇篃浼?xì)閫犳垚涓枃涔辯爜鐜拌薄錛屾垜浠彲浠ヤ笉閫氳繃qtconfig紼嬪簭鏀瑰彉榛樿qt紼嬪簭鐨勫瓧浣擄紝榪樺彲浠ュ湪紼嬪簭涓己鍒惰瀹氱▼搴忔湰韜墍鐢ㄧ殑榛樿瀛椾綋錛岃繖鏍蜂篃鏄彲浠ョ殑錛岃繖閲屽彧浠嬬粛榪欐牱鐨勬濊礬錛屼唬鐮佸氨涓嶈創(chuàng)浜嗭紝甯屾湜澶у紕拌鐨勬椂鍊欐湁涓弬鑰冦?/span>


]]>
QT Designer涓畨瑁匭WT鎻掍歡http://www.shnenglu.com/cc/archive/2008/09/05/60987.html鍖楅涔嬬007鍖楅涔嬬007Fri, 05 Sep 2008 04:54:00 GMThttp://www.shnenglu.com/cc/archive/2008/09/05/60987.htmlhttp://www.shnenglu.com/cc/comments/60987.htmlhttp://www.shnenglu.com/cc/archive/2008/09/05/60987.html#Feedback0http://www.shnenglu.com/cc/comments/commentRss/60987.htmlhttp://www.shnenglu.com/cc/services/trackbacks/60987.html  QWT鏄竴濂楅潪甯鎬笉閿欑殑寮鍙戝簱錛屽畠鑳界粨鍚圦T寮鍙戯紝鍋氬嚭闈炲父濂界殑鏇茬嚎錛屽埢搴︼紝琛ㄧ洏絳夋晥鏋滄潵銆?br>
  qwt鐨勪笅杞戒互鍙?qiáng)鍔ㄦ侀摼鎺ュ簱鐨勭紪璇戠瓑榪欓噷灝變笉鍋氫粙緇嶄簡銆傚湪婧愮爜鐩綍涓嬪彲浠ユ壘鍒癲esigner鐩綍錛屽叾涓湁鎻掍歡鐨勬簮鐮侊紝緙栬瘧瀹屼箣鍚庡氨浼?xì)鐢熸垚qwtplugin.dll鍜宷wtplugin.lib錛屾妸浠栦滑鎷瘋礉鍒?font face=Arial>$(QTDIR)\plugins\designer鐩綍涓嬶紝閲嶆柊鍚姩QT Designer錛屽氨浼?xì)鐪嬪埌ToolBox闈㈡澘涓鍑轟簡Qwt綾伙紝濡備笅鍥炬墍紺恒備互涓婂湪QT3.3.4涓嬫祴璇曢氳繃錛?a style="COLOR: red" href="http://www.shnenglu.com/Files/cc/qwtplugin.rar">qwtplugin.dll鍜宷wtplugin.lib涓嬭澆


鍖楅涔嬬007 2008-09-05 12:54 鍙戣〃璇勮
]]>
QT涓眰鍙栦腑鏂囧瓧絎︿覆鐨勯暱搴?/title><link>http://www.shnenglu.com/cc/archive/2007/10/16/34371.html</link><dc:creator>鍖楅涔嬬007</dc:creator><author>鍖楅涔嬬007</author><pubDate>Tue, 16 Oct 2007 12:40:00 GMT</pubDate><guid>http://www.shnenglu.com/cc/archive/2007/10/16/34371.html</guid><wfw:comment>http://www.shnenglu.com/cc/comments/34371.html</wfw:comment><comments>http://www.shnenglu.com/cc/archive/2007/10/16/34371.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cc/comments/commentRss/34371.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cc/services/trackbacks/34371.html</trackback:ping><description><![CDATA[<p style="FONT-SIZE: 14pt">   鍦ㄤ嬌鐢≦T緙栫▼鐨勬椂鍊欙紝鎴戜滑澶勭悊瀛楃涓蹭竴鑸兘浣跨敤鐨凲T鑷甫鐨凲String綾誨瀷錛岃繖涓被鍨嬬被浼間簬STL涓殑string綾誨瀷錛岃繕鏄潪甯稿ソ鐢ㄧ殑銆備笉榪嘠T鐨勭紪鐮佹柟寮忎嬌鐢║nicode錛屾垜鐚滄祴鐪熸槸鐢變簬榪欎釜鍘熷洜錛屽啀浣跨敤QString鐨刲ength()鏂規(guī)硶榪斿洖瀛楃涓查暱搴︾殑鏃跺欏氨浼?xì)鍑虹幇鍋忓樊锛屽浜庝竴鑸殑瑗挎枃瀛楁瘝鏄病鏈夐棶棰樼殑錛屼絾鏄浜庝腑鏂囧瓧絎﹀嵈鏈夐棶棰樹簡錛屽畠鎶婁竴涓腑鏂囧瓧絎﹀綋浣滀竴涓瓧鑺傛潵澶勭悊浜嗭紝鎵浠ュ儚瀛楃涓?#8220;浣犲ソQT”鐨勯暱搴﹁繑鍥炵殑鏄?錛岃屼笉鏄?銆?br><br>闂鍑虹幇浜嗭紝閭d箞鎴戜滑闇瑕佹庝箞瑙e喅鍛紝鎬濊礬寰堢畝鍗曪紝灝辨槸杞崲緙栫爜錛岀劧鍚庡啀榪涜闀垮害鐨勬眰鍙栵紝QT鐨勬枃妗i噷闈㈡湁濂藉鍑芥暟錛岃瘯楠屼簡鍗婂ぉ錛岀粓浜庢壘鍒頒竴涓悎閫傜殑鍑芥暟錛岄『鍒╃殑瀹屾垚浜嗘垜鐨勮姹傘傝鍑芥暟灝辨槸fromLocal8Bit ( const char * local8Bit, int len = -1 )<br><br><span style="FONT-SIZE: 14pt"><strong><em>QCString QString::local8Bit () const <br>浠ユ湰鍦版寚瀹氱殑鏍煎紡榪斿洖瀛楃涓層傚湪X11緋葷粺涓紝浣跨敤QTextCodec::codecForLocale()銆?鍦╓indows緋葷粺涓紝瀹冩槸涓縐嶇郴緇熸寚瀹氱殑緙栫爜鏂瑰紡銆傚湪Mac OS X涓紝浣跨敤uft8浣滀負(fù)緙栫爜鏂瑰紡銆?br></em></strong><br> 鏈変簡涓婇潰鐨勯摵鍨紝涓嬮潰灝遍棶棰樺氨濂藉姙浜嗭紝瑕佹兂姹傚彇甯︿腑鏂囩殑瀛楃涓茬殑闀垮害錛屽彧闇瑕佺◢寰璧頒竴姝ヨ屽凡銆傚亣璁炬湁瀛楃涓瞫tr="QT浣犲ソ",閭d箞鎴戜滑涓昏榪涜str.local8Bit().length(),榪欐牱緇撴灉灝辨槸6錛岀鍚堟垜浠殑瑕佹眰浜嗭紝浜嬫儏灝辨槸榪欐牱錛屾鏂囧畬錛?/span></p><img src ="http://www.shnenglu.com/cc/aggbug/34371.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cc/" target="_blank">鍖楅涔嬬007</a> 2007-10-16 20:40 <a href="http://www.shnenglu.com/cc/archive/2007/10/16/34371.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愯漿甯栥戝父瑙佺殑鍑犱釜Qt緙栫▼闂鐨勫鐞?/title><link>http://www.shnenglu.com/cc/archive/2007/09/27/33041.html</link><dc:creator>鍖楅涔嬬007</dc:creator><author>鍖楅涔嬬007</author><pubDate>Thu, 27 Sep 2007 10:21:00 GMT</pubDate><guid>http://www.shnenglu.com/cc/archive/2007/09/27/33041.html</guid><wfw:comment>http://www.shnenglu.com/cc/comments/33041.html</wfw:comment><comments>http://www.shnenglu.com/cc/archive/2007/09/27/33041.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cc/comments/commentRss/33041.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cc/services/trackbacks/33041.html</trackback:ping><description><![CDATA[錛戙佸鏋滃湪紿椾綋鍏抽棴鍓嶈嚜琛屽垽鏂槸鍚﹀彲鍏抽棴<br>絳旓細(xì)閲嶆柊瀹炵幇榪欎釜紿椾綋鐨刢loseEvent()鍑芥暟錛屽姞鍏ュ垽鏂搷浣?br> <h6 class=quote>Quote:</h6> <blockquote><br>void MainWindow::closeEvent(QCloseEvent *event)<br>{<br>      if (maybeSave())<br>      {<br>              writeSettings();<br>              <span style="COLOR: blue">event->accept();</span><br>      }<br>      else<br>      {<br>              <span style="COLOR: blue">event->ignore();</span><br>      }<br>}<br></blockquote><br><br>錛掋佸浣曠敤鎵撳紑鍜屼繚瀛樻枃浠跺璇?br>絳旓細(xì)浣跨敤QFileDialog<br> <h6 class=quote>Quote:</h6> <blockquote><br>              <span style="COLOR: blue">QString fileName = QFileDialog::getOpenFileName(this);<br>              if (!fileName.isEmpty())</span><br>              {<br>                    loadFile(fileName);<br>              }<br></blockquote><br><br> <h6 class=quote>Quote:</h6> <blockquote><br>      <span style="COLOR: blue">QString fileName = QFileDialog::getSaveFileName(this);<br>      if (fileName.isEmpty())</span><br>      {<br>              return false;<br>      }<br></blockquote><br><br>錛撱佸鏋滃垱寤篈ctions(鍙湪鑿滃崟鍜屽伐鍏鋒爮閲屼嬌鐢ㄨ繖浜汚ction)<br>絳旓細(xì)<br> <h6 class=quote>Quote:</h6> <blockquote><br>newAct = new QAction(QIcon(":/images/new.png"), tr("&New"), this);<br>        newAct->setShortcut(tr("Ctrl+N"));<br>        newAct->setStatusTip(tr("Create a new file"));<br>        connect(newAct, SIGNAL(triggered()), this, SLOT(newFile()));<br><br>        openAct = new QAction(QIcon(":/images/open.png"), tr("&Open..."), this);<br>        openAct->setShortcut(tr("Ctrl+O"));<br>        openAct->setStatusTip(tr("Open an existing file"));<br>        connect(openAct, SIGNAL(triggered()), this, SLOT(open()));<br><br>        saveAct = new QAction(QIcon(":/images/save.png"), tr("&Save"), this);<br>        saveAct->setShortcut(tr("Ctrl+S"));<br>        saveAct->setStatusTip(tr("Save the document to disk"));<br>        connect(saveAct, SIGNAL(triggered()), this, SLOT(save()));<br><br>        saveAsAct = new QAction(tr("Save &As..."), this);<br>        saveAsAct->setStatusTip(tr("Save the document under a new name"));<br>        connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveAs()));<br><br>        exitAct = new QAction(tr("E&xit"), this);<br>        exitAct->setShortcut(tr("Ctrl+Q"));<br>        exitAct->setStatusTip(tr("Exit the application"));<br>        connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));<br><br>        cutAct = new QAction(QIcon(":/images/cut.png"), tr("Cu&t"), this);<br>        cutAct->setShortcut(tr("Ctrl+X"));<br>        cutAct->setStatusTip(tr("Cut the current selection's contents to the "<br>                                "clipboard"));<br>        connect(cutAct, SIGNAL(triggered()), textEdit, SLOT(cut()));<br><br>        copyAct = new QAction(QIcon(":/images/copy.png"), tr("&Copy"), this);<br>        copyAct->setShortcut(tr("Ctrl+C"));<br>        copyAct->setStatusTip(tr("Copy the current selection's contents to the "<br>                                "clipboard"));<br>        connect(copyAct, SIGNAL(triggered()), textEdit, SLOT(copy()));<br><br>        pasteAct = new QAction(QIcon(":/images/paste.png"), tr("&Paste"), this);<br>        pasteAct->setShortcut(tr("Ctrl+V"));<br>        pasteAct->setStatusTip(tr("Paste the clipboard's contents into the current "<br>                                  "selection"));<br>        connect(pasteAct, SIGNAL(triggered()), textEdit, SLOT(paste()));<br><br>        aboutAct = new QAction(tr("&About"), this);<br>        aboutAct->setStatusTip(tr("Show the application's About box"));<br>        connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));<br><br>        aboutQtAct = new QAction(tr("About &Qt"), this);<br>        aboutQtAct->setStatusTip(tr("Show the Qt library's About box"));<br>        connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));<br></blockquote><br>錛斻佸鏋滃垱寤轟富鑿滃崟<br>絳旓細(xì)閲囩敤涓婇潰鐨凲Action鐨勫府鍔╋紝鍒涘緩涓昏彍鍗?br> <h6 class=quote>Quote:</h6> <blockquote><br>      fileMenu = menuBar()->addMenu(tr("&File"));<br>        fileMenu->addAction(newAct);<br>        fileMenu->addAction(openAct);<br>        fileMenu->addAction(saveAct);<br>        fileMenu->addAction(saveAsAct);<br>        fileMenu->addSeparator();<br>        fileMenu->addAction(exitAct);<br><br>        editMenu = menuBar()->addMenu(tr("&Edit"));<br>        editMenu->addAction(cutAct);<br>        editMenu->addAction(copyAct);<br>        editMenu->addAction(pasteAct);<br><br>        menuBar()->addSeparator();<br><br>        helpMenu = menuBar()->addMenu(tr("&Help"));<br>        helpMenu->addAction(aboutAct);<br>        helpMenu->addAction(aboutQtAct);<br></blockquote><br><br>錛曘佸鏋滃垱寤哄伐鍏鋒爮<br>絳旓細(xì)閲囩敤涓婇潰鐨凲Action鐨勫府鍔╋紝鍒涘緩宸ュ叿鏍?br> <h6 class=quote>Quote:</h6> <blockquote><br>      fileToolBar = addToolBar(tr("File"));<br>        fileToolBar->addAction(newAct);<br>        fileToolBar->addAction(openAct);<br>        fileToolBar->addAction(saveAct);<br><br>        editToolBar = addToolBar(tr("Edit"));<br>        editToolBar->addAction(cutAct);<br>        editToolBar->addAction(copyAct);<br>        editToolBar->addAction(pasteAct);<br></blockquote><br>錛栥佸浣曚嬌鐢ㄩ厤緗枃浠朵繚瀛橀厤緗?br>絳旓細(xì)浣跨敤QSettings綾?br> <h6 class=quote>Quote:</h6> <blockquote><br>      QSettings settings("Trolltech", "Application Example");<br>        QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint();<br>        QSize size = settings.value("size", QSize(400, 400)).toSize();<br></blockquote><br><br> <h6 class=quote>Quote:</h6> <blockquote><br>      QSettings settings("Trolltech", "Application Example");<br>        settings.setValue("pos", pos());<br>        settings.setValue("size", size());<br></blockquote><br><br>錛椼佸浣曚嬌鐢ㄨ鍛娿佷俊鎭瓑瀵硅瘽妗?br>絳旓細(xì)浣跨敤QMessageBox綾葷殑闈欐佹柟娉?br> <h6 class=quote>Quote:</h6> <blockquote><br>int ret = QMessageBox::warning(this, tr("Application"),<br>                        tr("The document has been modified.\n"<br>                            "Do you want to save your changes?"),<br>                        QMessageBox::Yes | QMessageBox::Default,<br>                        QMessageBox::No,<br>                        QMessageBox::Cancel | QMessageBox::Escape);<br>            if (ret == QMessageBox::Yes)<br>                return save();<br>            else if (ret == QMessageBox::Cancel)<br>                return false;<br></blockquote><br><br>錛樸佸浣曚嬌閫氱敤瀵硅瘽妗嗕腑鏂囧寲<br>絳旓細(xì)瀵硅瘽妗嗙殑涓枃鍖?br>姣斿璇達(dá)紝QColorDialog鐨勪笌鏂囧瓧鐩稿叧鐨勯儴鍒嗭紝涓昏鍦╭colordialog.cpp鏂囦歡涓紝鎴戜滑鍙互浠巕colordialog.cpp鐢?lupdate鐢熸垚涓涓猼s鏂囦歡錛岀劧鍚庣敤鑷畾涔夎繖涓猼s鏂囦歡鐨勭炕璇戯紝鍐嶇敤lrelease鐢熸垚涓涓?qm鏂囦歡錛屽綋鐒朵簡錛屼富紼嬪簭灝辮鏀瑰彉瑕佹敮鎸佸鍥借璦浜嗭紝浣跨敤榪欎釜.qm鏂囦歡灝卞彲浠ヤ簡銆?br><br>鍙﹀錛岃繕鏈変竴涓洿蹇殑鏂規(guī)硶錛屽湪婧愪唬鐮佽В寮鍚庢湁涓涓洰褰晅ranslations錛屼笅闈㈡湁涓浜?ts, .qm鏂囦歡錛屾垜浠嫹璐濅竴涓細(xì)<br> <h6 class=quote>Quote:</h6> <blockquote><br>cp src/translations/qt_untranslated.ts ./qt_zh_CN.ts<br></blockquote><br>鐒跺悗錛屾垜浠氨鐢↙inguist鎵撳紑榪欎釜qt_zh_CN.ts錛岃繘琛岀炕璇戜簡錛岀炕璇戝畬鎴愬悗錛屼繚瀛樺悗錛屽啀鐢╨release鍛戒護(hù)鐢熸垚qt_zh_CN.qm錛岃繖鏍鳳紝鎴戜滑鎶婂畠鍔犲叆鍒版垜浠殑qt project涓紝閭d簺緋葷粺鐨勫璇濇錛岃彍鍗曠瓑絳夊叾瀹冪殑榛樿鏄嫳鏂囩殑涓滆タ灝辮兘鏄劇ず鎴愪腑鏂囦簡銆?br><br>錛欍佸湪Windows涓婹t閲屼負(fù)浠涔堟病鏈夌粓绔緭鍑猴紵<br>絳旓細(xì)鎶婁笅闈㈢殑閰嶇疆欏瑰姞鍏ュ埌.pro鏂囦歡涓?br> <h6 class=quote>Quote:</h6> <blockquote><br>win32:CONFIG += console<br></blockquote><br><br>10銆丵t 4 for X11 OpenSource鐗堝浣曢潤鎬侀摼鎺ワ紵<br>絳旓細(xì)緙栬瘧瀹夎鐨勬椂鍊欏姞涓?static閫夐」<br> <h6 class=quote>Quote:</h6> <blockquote>./configure -static  錛忥紡涓瀹氳鍔爏tatic閫夐」<br>gmake<br>gmake install<br></blockquote><br>鐒跺悗錛屽湪Makefile鏂囦歡涓姞 static 閫夐」鎴栬呭湪.pro鏂囦歡涓姞涓奞MAKE_LFLAGS += -static錛屽氨鍙互榪炴帴闈欐佸簱浜嗐?br><br>11銆佹兂鍦ㄦ簮浠g爜涓洿鎺ヤ嬌鐢ㄤ腑鏂囷紝鑰屼笉浣跨敤tr()鍑芥暟榪涜杞崲錛屾庝箞鍔烇紵<br>絳旓細(xì)鍦╩ain鍑芥暟涓姞鍏ヤ笅闈笁鏉¤鍙ワ紝浣嗗茍涓嶆彁鍊?br> <h6 class=quote>Quote:</h6> <blockquote>    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));<br>QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));<br>QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));<br></blockquote><br>鎴栬?br> <h6 class=quote>Quote:</h6> <blockquote>    QTextCodec::setCodecForLocale(QTextCodec::codecForName("GBK"));<br>QTextCodec::setCodecForCStrings(QTextCodec::codecForName("GBK"));<br>QTextCodec::setCodecForTr(QTextCodec::codecForName("GBK"));<br></blockquote><br>浣跨敤GBK榪樻槸浣跨敤UTF-8錛屼緷婧愭枃浠朵腑姹夊瓧浣跨敤鐨勫唴鐮佽屽畾<br>榪欐牱錛屽氨鍙湪婧愭枃浠朵腑鐩存帴浣跨敤涓枃錛屾瘮濡傦細(xì)<br> <h6 class=quote>Quote:</h6> <blockquote>QMessageBox::information(NULL, "淇℃伅", "鍏充簬鏈蔣浠剁殑婕旂ず淇℃伅", QMessageBox::Ok, QMessageBox::NoButtons);<br></blockquote><br><br>12銆佷負(fù)浠涔堝皢寮鍙戠殑浣跨敤鏁版嵁搴撶殑紼嬪簭鍙戝竷鍒板叾瀹冩満鍣ㄥ氨榪炴帴涓嶄笂鏁版嵁搴擄紵<br>絳旓細(xì)榪欐槸鐢變簬紼嬪簭鎵句笉鍒版暟鎹簱鎻掍歡鑰岃嚧錛屽彲鐓у涓嬭В鍐蟲柟娉曪細(xì)<br>鍦╩ain鍑芥暟涓姞鍏ヤ笅闈㈣鍙ワ細(xì)<br> <h6 class=quote>Quote:</h6> <blockquote>QApplication::addLibraryPath(strPluginsPath");<br></blockquote><br>strPluginsPath鏄彃浠舵墍鍦ㄧ洰褰曪紝姣斿姝ょ洰褰曚負(fù)/myapplication/plugins<br>鍒欏皢闇瑕佺殑sql椹卞姩錛屾瘮濡俼sqlmysql.dll, qsqlodbc.dll鎴栧搴旂殑.so鏂囦歡鏀懼埌<br>/myapplication/plugins/sqldrivers/<br>鐩綍涓嬮潰灝辮浜?br>榪欐槸涓縐嶈В鍐蟲柟娉曪紝榪樻湁涓縐嶉氱敤鐨勮В鍐蟲柟娉曪紝鍗沖湪鍙墽琛屾枃浠剁洰褰曚笅鍐檘t.conf鏂囦歡錛屾妸緋葷粺鐩稿叧鐨勪竴浜涚洰褰曢厤緗啓鍒皅t.conf鏂囦歡閲岋紝璇︾粏鎯呭喌鎯呭弬鑰僎t Document Reference閲岀殑qt.conf閮ㄥ垎<br><br><br>13銆佸浣曞垱寤篞T浣跨敤鐨凞LL(.so)浠ュ強(qiáng)濡備綍浣跨敤姝LL(.so)<br>絳旓細(xì)鍒涘緩DLL鏃跺叾宸ョ▼浣跨敤lib妯℃澘<br> <h6 class=quote>Quote:</h6> <blockquote>TEMPLATE=lib<br></blockquote><br>鑰屾簮鏂囦歡鍒欏拰浣跨敤鏅氱殑婧愭枃浠朵竴鏍鳳紝娉ㄦ剰鎶婂ご鏂囦歡鍜屾簮鏂囦歡鍒嗗紑錛屽洜涓哄湪鍏跺畠紼嬪簭浣跨敤姝LL鏃墮渶瑕佹澶存枃浠?br>鍦ㄤ嬌鐢ㄦDLL鏃訛紝鍒欏湪姝ゅ伐紼嬫簮鏂囦歡涓紩鍏LL澶存枃浠訛紝騫跺湪.pro鏂囦歡涓姞鍏ヤ笅闈㈤厤緗」錛?br> <h6 class=quote>Quote:</h6> <blockquote>LIBS += -Lyourdlllibpath -lyourdlllibname<br></blockquote><br>Windows涓嬪拰Linux涓嬪悓鏍鳳紙Windows涓嬬敓鎴愮殑DLL鏂囦歡鍚嶄負(fù)yourdlllibname.dll鑰屽湪Linux涓嬬敓鎴愮殑涓簂ibyourdlllibname.so<br><br>14銆佸浣曞惎鍔ㄤ竴涓閮ㄧ▼搴?br>絳旓細(xì)鍙嬌鐢≦Process鍜孮Thread榪欎袱涓被緇撳悎浣跨敤鐨勬柟娉曟潵澶勭悊錛屼互闃叉鍦ㄤ富綰跨▼涓皟鐢ㄨ屽鑷撮樆濉炵殑鎯呭喌<br>鍏堜粠QThread緇ф壙涓涓被錛岄噸鏂板疄鐜皉un()鍑芥暟錛?br> <h6 class=quote>Quote:</h6> <blockquote><br>class MyThread : public QThread<br>{<br>public:<br>    void run();<br>};<br><br>void MyThread::run()<br>{<br>    QProcess::execute("notepad.exe");<br>}<br></blockquote><br>榪欐牱錛屽湪浣跨敤鐨勬椂鍊欏垯鍙畾涔変竴涓狹yThread綾誨瀷鐨勬垚鍛樺彉閲忥紝浣跨敤鏃惰皟鐢ㄥ叾start()鏂規(guī)硶錛?br> <h6 class=quote>Quote:</h6> <blockquote><br>class ...............<br>{...........<br>MyThread thread;<br>............<br>};<br><br>.....................<br>thread.start();<br></blockquote><br><br>15銆佸浣曟墦鍗版姤琛?br>絳旓細(xì)Qt鐩墠瀵規(guī)姤琛ㄦ墦鍗版敮鎸佺殑搴撹繕寰堝皯錛屼笉榪囨湁縐嶅彉閫氱殑鏂規(guī)硶錛屽氨鏄嬌鐢╔ML+XSLT+XSL-FO鏉ヨ繘琛屾姤琛ㄨ璁★紝XML杈撳嚭鏁版嵁錛岀敤XSLT灝哫ML鏁版嵁杞崲涓篨SL-FO鏍煎紡鐨勬姤琛紝鐢變簬鐜板湪鐨勬祻瑙堝櫒涓嶇洿鎺ユ敮鎸乆SL-FO鏍煎紡鐨勬樉紺猴紝鎵浠ユ殏鏃跺彲鐢ㄥ伐鍏?Apache FOP, Java鍋氱殑)灝哫SL-FO杞崲涓篜DF鏂囨。鏉ヨ繘琛屾墦鍗幫紝杞崲鍜屾墦鍗扮敱FOP鏉ュ仛錛岀敓鎴怷SL-FO鏍煎紡鐨勬姤琛ㄥ彲浠ョ敱Qt鏉ョ敓鎴愶紝涔熷彲浠ョ敱鍏跺畠鍐呭杞崲榪囨潵錛屾瘮濡傛湁宸ュ叿(html2fo)灝咹TML杞崲涓篨SL-FO銆?br><br>16銆佸浣曞湪緋葷粺鎵樼洏鍖烘樉紺哄浘鏍?br>絳旓細(xì)鍦?.2鍙?qiáng)鍏朵互涓婄増鏈腑鋴社敤QSystemTrayIcon綾繪潵瀹炵幇<br><br>17銆佹庢牱灝嗘棩蹇楄緭鍑哄埌鏂囦歡涓?br>絳旓細(xì)錛坢yer鎻愪緵錛?br> <h6 class=quote>Quote:</h6> <blockquote><br>void myMessageOutput( QtMsgType type, const char *msg )<br>{<br>    switch ( type ) {<br>        case QtDebugMsg:<br>            //鍐欏叆鏂囦歡錛?br>            break;<br>        case QtWarningMsg:<br>            break;<br>        case QtFatalMsg:<br>            abort();<br>    }<br>}<br><br>int main( int argc, char** argv )<br>{<br>    QApplication app( argc, argv );<br>    qInstallMsgHandler( myMessageOutput );<br>    ......<br>    return app.exec();<br>}<br></blockquote><br>qDebug(), qWarning(), qFatal()鍒嗗埆瀵瑰簲浠ヤ笂涓夌type銆?br><br>18銆佸浣曞皢鍥懼儚緙栬瘧鍒板彲鎵ц紼嬪簭涓幓<br>絳旓細(xì)浣跨敤.qrc鏂囦歡<br>鍐?qrc鏂囦歡錛屼緥濡傦細(xì)<br>res.qrc<br> <h6 class=quote>Quote:</h6> <blockquote><br><!DOCTYPE RCC><RCC version="1.0"><br><qresource><br>    <file>images/copy.png</file><br>    <file>images/cut.png</file><br>    <file>images/new.png</file><br>    <file>images/open.png</file><br>    <file>images/paste.png</file><br>    <file>images/save.png</file><br></qresource><br></RCC><br></blockquote><br>鐒跺悗鍦?pro涓姞鍏ヤ笅闈唬鐮侊細(xì)<br> <h6 class=quote>Quote:</h6> <blockquote><br>RESOURCES    = res.qrc<br></blockquote><br><br>鍦ㄧ▼搴忎腑浣跨敤錛?br> <h6 class=quote>Quote:</h6> <blockquote><br>...<br>:images/copy.png<br>...<br></blockquote><br><br>19銆佸浣曞埗浣滀笉瑙勫垯褰㈢姸鐨勭獥浣撴垨閮ㄤ歡<br>絳旓細(xì)璇峰弬鑰冧笅闈㈢殑甯栧瓙<br><a target=_blank><font color=#2f5fa1>http://www.qtcn.org/bbs/read.php?tid=8681</font></a><img src ="http://www.shnenglu.com/cc/aggbug/33041.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cc/" target="_blank">鍖楅涔嬬007</a> 2007-09-27 18:21 <a href="http://www.shnenglu.com/cc/archive/2007/09/27/33041.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>QT璇誨彇涓枃鏂囦歡http://www.shnenglu.com/cc/archive/2007/08/25/30824.html鍖楅涔嬬007鍖楅涔嬬007Sat, 25 Aug 2007 12:28:00 GMThttp://www.shnenglu.com/cc/archive/2007/08/25/30824.htmlhttp://www.shnenglu.com/cc/comments/30824.htmlhttp://www.shnenglu.com/cc/archive/2007/08/25/30824.html#Feedback1http://www.shnenglu.com/cc/comments/commentRss/30824.htmlhttp://www.shnenglu.com/cc/services/trackbacks/30824.html   铏界劧C++鏍囧噯涓湁浜嗘枃浠惰鍙栫殑鐩稿叧綾伙紝涔熷緢濂界敤錛屼絾鏄湪娑夊強(qiáng)鍒癚T緙栫▼鐨勬椂鍊欏嵈鐢ㄨ搗鏉ヤ笉鏂逛究浜嗭紝鍥犱負(fù)QT鏈韓寰堝緇勪歡閮芥槸鍏寵仈鐨勮嚜韜殑QString綾誨瀷鐨勫瓧絎︿覆錛屾墍浠ュ啀鐢–++鏈韓String綾誨瀷鐨勬椂鍊欏氨涓嶆槸閭d箞鏂逛究浜嗭紝闇瑕佽繘琛岃漿鍖栵紝榪欐牱緇欑▼搴忓甫鏉ヤ簡澶嶆潅搴︼紝鍚屾椂涔熷甫鏉ヤ簡杞寲鐨勫紑閿錛屾墍浠ュ鏋滅敤QT寮鍙戯紝鍙互灝辯敤瀹冩湰韜墍甯︾殑榪欎簺綾誨瀷榪涜澶勭悊錛屽艦鎴愪竴涓郴緇燂紝渚夸簬鏁版嵁鍦ㄧ▼搴忎箣涓殑浜や簰鍜屽叡鐢ㄣ?br>   QT寰堝ソ錛屼絾鏄湪澶勭悊涓枃鎴栬呭叾浠栬璦鐨勬椂鍊欒娉ㄦ剰緙栫爜鏍煎紡錛屽鏋滄病鏈夋敞鎰忥紝璇誨彇鏂囦歡鐨勬椂鍊欏彲鑳借鍑烘潵鐨勫氨鏄貢鐮佹垨鑰呭共鑴嗙▼搴忓氨姝繪帀浜嗭紝榪欐槸鎴戜滑鎵涓嶆効鎰忕湅鍒扮殑錛屼笅闈㈠氨璁茶鎬庝箞鏍烽氳繃QT鐨勭被鏉ヨ鍙栦腑鏂囨枃浠躲?/span>

浠嬬粛閮ㄥ垎
   鎴戜滑闇瑕佺敤鍒板嚑涓ご鏂囦歡涓殑綾伙細(xì)
#include <qstring.h>
#include <qfile.h>
#include <qtextstream.h>
#include <qtextcodec.h>

QString

QString綾繪彁渚涗簡涓涓猆nicode鏂囨湰鍜岀粡鍏哥殑C浠ラ浂緇撳熬鐨勫瓧絎︽暟緇勭殑鎶借薄銆?
QString浣跨敤闅愬惈鍏變韓錛岃繖浣垮畠闈炲父鏈夋晥鐜囧茍涓斿緢瀹規(guī)槗浣跨敤銆?
鎵鏈夌殑QString鐨勬柟娉曢兘浣跨敤const char *鍙傛暟錛宑onst char *琚В閲婁負(fù)緇忓吀鐨凜椋庢牸鐨勪互闆剁粨灝劇殑ASCII瀛楃涓層傛墍浠onst char *鍙傛暟涓?鏄悎娉曠殑銆傚鏋渃onst char *涓嶆槸浠ラ浂緇撳熬鐨勶紝緇撴灉鏄笉紜畾鐨勩傛妸緇忓吀鐨凜瀛楃涓插鍒跺埌QString鐨勫嚱鏁板皢涓嶄細(xì)澶嶅埗緇撳熬鐨?瀛楃銆俀String鐨凲Char鏁扮粍錛堝彲浠ラ氳繃unicode()榪斿洖錛夐氬父涓嶄互闆剁粨灝俱傚鏋滀綘闇瑕佹妸QString浼犻掑埌涓涓渶瑕丆鐨勪互闆剁粨灝劇殑瀛楃涓詫紝璇蜂嬌鐢╨atin1()銆?
娌℃湁鍒嗛厤浠諱綍涓滆タ鐨凲String鏄浂錛屼篃灝辨槸闀垮害鍜屾暟鎹寚閽堥兘涓?銆傚紩鐢ㄧ┖瀛楃涓詫紙“”錛屼竴涓崟涓鐨?\0'瀛楃錛夌殑QString鏄┖銆傞浂鍜岀┖榪欎袱涓猀String鍦ㄦ柟娉曚腑閮芥槸鍚堟硶鐨勩傛妸(const char *) 0璧嬪肩粰QString緇欏畾浜嗕竴涓浂QString銆備負(fù)浜嗘柟渚匡紝QString::null鏄竴涓浂QString銆傚綋鎺掑簭鐨勬椂鍊欙紝絀哄瓧絎︿覆鍦ㄦ渶鍓嶉潰錛岀劧鍚庢槸闈炵┖瀛楃涓詫紝鐒跺悗鎵嶆槸闆跺瓧絎︿覆銆傛垜浠緩璁嬌鐢╥f ( !str.isNull() )錛岃屼笉鏄痠f ( !str )鏉ユ嫻嬮潪闆跺瓧絎︿覆錛屽叧浜庤В閲婅鏄庝篃鍙互鍙傝僶perator!()銆?
娉ㄦ剰濡傛灉浣犲彂鐜頒綘姝e湪娣峰悎浣跨敤QCString銆丵String鍜孮ByteArray錛岃繖灝嗕細(xì)瀵艱嚧寰堝涓嶅繀瑕佺殑澶嶅埗騫朵笖涔熻浼?xì)棰劷C虹潃浣犳鍦ㄥ鐞嗙殑鐪熷疄鑷劧鏁版嵁鏄笉紜畾鐨勩傚鏋滄暟鎹槸浠ラ浂緇撳熬鐨勫叓浣嶆暟鎹紝璇蜂嬌鐢≦CString錛涘鏋滃畠鏄病鏈夌粨灝劇殑錛堜篃灝辨槸鍖呭惈0錛夊叓浣嶆暟鎹紝璇蜂嬌鐢≦ByteArray錛涘鏋滃畠鏄枃鏈紝璇蜂嬌鐢≦String銆?
瀛楃涓插垪琛ㄥ彲浠ヤ嬌鐢≦StringList綾繪潵澶勭悊銆備綘鍙互浣跨敤QStringList::split()鏉ユ妸涓涓瓧絎︿覆鍒嗗壊涓轟竴涓瓧絎︿覆鍒楄〃錛屽茍涓斿彲浠ヤ嬌鐢≦StringList::join()鎶婁竴涓瓧絎︿覆鍒楄〃榪炴帴鎴愪竴涓嬌鐢ㄩ殢鎰忛棿闅旂鐨勫瓧絎︿覆銆備綘涔熷彲浠ヤ嬌鐢≦StringList::grep()浠庝竴涓瓧絎︿覆鍒楄〃涓幏寰楀寘鍚壒瀹氬瓙瀛楃涓叉垨鑰呭寘鍚尮閰嶇壒瀹氱殑regex鐨勫瓧絎︿覆鍒楄〃銆?
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QFile

QFile綾繪槸涓涓搷浣滄枃浠剁殑杈撳叆/杈撳嚭璁懼銆?
QFile鏄敤鏉ヨ鍐欎簩榪涘埗鏂囦歡鍜屾枃鏈枃浠剁殑杈撳叆/杈撳嚭璁懼銆俀File鍙互鑷繁鍗曠嫭琚嬌鐢紝浣嗘槸濡傛灉鍜孮DataStream鎴朡TextStream涓璧蜂嬌鐢ㄥ皢鏇村姞鏂逛究銆?
鏂囦歡鍚嶉氬父鍙互閫氳繃鏋勯犲嚱鏁版潵浼犻掞紝浣嗕篃鍙互浣跨敤setName()鏉ヨ緗備綘鍙互閫氳繃exists()鏉ユ鏌ヤ竴涓枃浠舵槸鍚﹀瓨鍦ㄥ茍涓斿彲浠ラ氳繃remove()鏉ョЩ鍘諱竴涓枃浠躲?
鏂囦歡鍙互鐢╫pen()鏉ユ墦寮銆佺敤close()鏉ュ叧闂佺敤flush()鏉ュ埛鏂般傛暟鎹氬父鍙互浣跨敤QDataStream鎴栬匭TextStream榪涜璇誨啓錛屼絾浣犱篃鍙互浣跨敤readBlock()鍜宺eadLine()鏉ヨ錛屼嬌鐢╳riteBlock()鏉ュ啓銆俀File涔熸敮鎸乬etch()銆?ungetch()鍜宲utch()銆?
size()鍙互榪斿洖鏂囦歡鐨勫ぇ灝忋備綘鍙互閫氳繃浣跨敤at()鍑芥暟寰楀埌褰撳墠鏂囦歡浣嶇疆鎴栬呯Щ鍒頒竴涓柊鐨勬枃浠朵綅緗傚鏋滀綘鍒頒簡鏂囦歡鐨勬湯灝撅紝atEnd()榪斿洖鐪熴俬andle()榪斿洖鏂囦歡鍙ユ焺銆?
榪欓噷鏄竴涓嬌鐢≦TextStream鏉ヤ竴琛屼竴琛屽湴璇誨彇涓涓枃鏈枃浠剁殑浠g爜孌點傚畠浼?xì)鎶婃瘡涓琛屽甫涓婁竴涓鍙鋒墦鍗板嚭鏉ャ?

    QStringList lines;
    QFile file( "file.txt" );
    if ( file.open( IO_ReadOnly ) ) {
        QTextStream stream( &file );
        QString line;
        int n = 1;
        while ( !stream.eof() ) {
            line = stream.readLine(); // 涓嶅寘鎷?#8220;\n”鐨勪竴琛屾枃鏈?br>            printf( "%3d: %s\n", n++, line.latin1() );
            lines += line;
        }
        file.close();
    }
 
鍐欐枃鏈篃寰堝鏄擄紙鍋囪鎴戜滑鏈変竴涓鐨勫瓧絎︿覆鍒楄〃瑕佸啓錛夛細(xì)

    QFile file( "file.txt" );
    if ( file.open( IO_WriteOnly ) ) {
        QTextStream stream( &file );
        for ( QStringList::Iterator it = lines.begin(); it != lines.end(); ++it )
            stream << *it << "\n";
        file.close();
    }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 
QTextStream

QTextStream綾繪彁渚涗簡浣跨敤QIODevice璇誨啓鏂囨湰鐨勫熀鏈姛鑳姐?
鏂囨湰嫻佺被鐨勫姛鑳界晫闈㈠拰鏍囧噯鐨凜++鐨刬ostream綾婚潪甯哥浉浼箋俰ostream鍜孮TextStream鐨勪笉鍚岀偣鏄垜浠殑嫻佹搷浣滃湪涓涓緢瀹規(guī)槗琚戶鎵跨殑QIODevice涓婏紝鑰宨ostream鍙兘鎿嶄綔涓涓笉鑳借緇ф壙鐨凢ILE *鎸囬拡銆?
Qt鎻愪緵浜嗗嚑涓拰iostream鐩鎬技鐨勫叏灞鍑芥暟錛?
bin璁劇疆QTextStream鏉ヨ/鍐欎簩榪涘埗鏁板瓧
oct璁劇疆QTextStream鏉ヨ/鍐欏叓榪涘埗鏁板瓧
dec璁劇疆QTextStream鏉ヨ/鍐欏崄榪涘埗鏁板瓧
hex璁劇疆QTextStream鏉ヨ/鍐欏崄鍏繘鍒舵暟瀛?
endl寮哄埗鎹㈣
flush寮哄埗QIODevice鍒鋒柊浠諱綍琚紦瀛樼殑鏁版嵁
ws浣滀負(fù)浠諱綍鍙敤鐨勬帶鍒剁錛堝湪杈撳叆鐨勬椂鍊欙級
reset閲嶆柊璁劇疆QTextStream涓哄畠鐨勭己鐪佹ā寮忥紙璇瘋reset()錛?
qSetW(int)璁劇疆瀛楁瀹藉害浣滀負(fù)鎸囧畾鍙傛暟
qSetFill(int)璁劇疆濉厖瀛楃浣滀負(fù)鎸囧畾鍙傛暟
qSetPrecision(int)璁劇疆綺劇‘搴︿綔涓烘寚瀹氬弬鏁?
璀﹀憡錛氶粯璁ゆ儏鍐典笅錛孮TextStream鍦ㄨ鍙栨祦鐨勬椂鍊欙紝浼?xì)鑷姩鍦皨個嫻嬫祦涓殑鏁板瓧鏄崄榪涘埗銆佸叓榪涘埗銆佸崄鍏繘鍒舵垨鑰呬簩榪涘埗鏍煎紡銆傚叿浣撴儏鍐墊槸錛屼竴涓互“0”涓哄紑澶寸殑鏁板瓧鏄叓榪涘埗鐨勶紝姣斿欏哄簭涓?#8220;0100”灝嗕細(xì)琚В閲婁負(fù)64銆?
QTextStream綾昏鍐欐枃鏈紝瀹冧笉閫傚悎澶勭悊浜岃繘鍒舵暟鎹紙鑰孮DataStream鏄傚悎鐨勶級銆?
榛樿鎯呭喌涓嬶紝杈撳嚭鐨勬槸浣跨敤鏈湴8浣嶇紪鐮佸悗鐨刄nicode鏂囨湰錛堟瘮濡傦紝QString錛夈傝繖浜涘彲浠ヤ嬌鐢╯etEncoding()鏂規(guī)硶榪涜鏀瑰彉銆傚浜庤緭鍏ワ紝QTextStream浼?xì)鑷姩妫嫻嬫爣鍑哢nicode“瀛楄妭欏哄簭鏍囪鐨?#8221;鏂囨湰鏂囦歡錛屽惁鍒欎細(xì)浣跨敤鏈湴8浣嶇紪鐮併?
QIODevice鍦ㄦ瀯閫犲嚱鏁頒腑琚緗紝鎴栬呬箣鍚庡湪setDevice()涓嬌鐢ㄣ傚鏋滆緭鍏ュ埌杈句簡atEnd()錛岃繑鍥炵湡銆傛暟鎹彲浠ヤ嬌鐢╫perator>>()閲嶈澆鎿嶄綔絎﹁鍒伴傚綋綾誨瀷鐨勫彉閲忎腑錛屾垨鑰呬嬌鐢╮ead()鎶婂畠浣滀負(fù)鏁翠釜閮ㄥ垎璇誨埌涓涓崟涓鐨勫瓧絎︿覆涓紝鎴栬呬嬌鐢╮eadLine()鎶婁竴嬈¤涓琛屻備嬌鐢╯kipWhiteSpace()鍙互蹇界暐鎺у埗絎︺備綘鍙互浣跨敤flags()鎴杝etf()鏉ヨ緗祦鐨勬爣璁般傝繖涓祦涔熸敮鎸亀idth()銆乸recision()鍜?fill()錛屼嬌鐢╮eset()鍙互閲嶆柊鎭㈠榛樿璁劇疆銆?
涔熷彲浠ュ弬鑰僎DataStream銆佽緭鍏?杈撳嚭鍜岀綉緇滃拰鏂囨湰鐩稿叧綾?
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

QTextCodec

QTextCodec 綾繪彁渚涙枃鏈紪鐮佷箣闂寸殑杞崲銆?br>QT浣跨敤Unicode鏉ュ瓨鍌紝緇樺埗浠ュ強(qiáng)鎿嶄綔瀛楃涓層傚湪寰堝鎯呭喌涓嬶紝浣犲彲鑳芥兂瑕佷嬌鐢ㄤ笉鍚岀殑緙栫爜鏂瑰紡鏉ュ鐞嗘暟鎹備緥濡傚ぇ閮ㄥ垎鐨勬棩璇枃浠墮兘琚瓨鍌ㄥ湪Shift-JIS鎴栬?ISO2022鐨勬枃浠朵腑錛岃屼縿緗楁柉鐨勭敤鎴峰父甯鎬嬌鐢↘OI8-R鎴栬匔P1251緙栫爜鏂瑰紡銆俀T鎻愪緵浜嗕竴涓猀TextCodec 綾婚泦鍚堟潵浠嶶nicode鏍煎紡杞寲鍒扮浉搴旂殑鏍煎紡銆?/p>

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

浠g爜閮ㄥ垎

#include <qstring.h>
#include <qfile.h>
#include <qtextstream.h>
#include <qtextcodec.h>

int main()
{   
 QFile file("test.txt");
 if (file.open(IO_ReadOnly|IO_Raw))
 {
  QTextStream floStream(&file);
  QString line;
  QTextCodec *codec=QTextCodec::codecForName("GBK");
  floStream.setCodec(codec);
 
  while ( floStream.atEnd()==0 )
  {
   line = codec->fromUnicode(floStream.readLine());
   qWarning(line);
  }
  file.close();     
 }
 return 0;
}
浠g爜涓殑涓昏鏀瑰姩灝辨槸榛勫簳鐨勯儴鍒?br>鎰忔濆氨鏄垱绔嬩竴涓腑鏂嘒BK緙栫爜鏍峰紡錛岀劧鍚庢寜鐓ц繖縐嶆柟寮忔潵鎶婅鍏ョ殑鏂囦歡嫻佽繘琛岄噸鏂扮紪鐮侊紝榪欐牱涓枃灝卞彲浠ラ『鍒╄緭鍑轟簡錛屼笉淇′綘鍙互璇曚竴璇曪紝鍝堝搱錛屽厛浠嬬粛榪欎箞澶氾紝涓嬫鏈変粈涔堜笅嬈″啀鍐欏暒銆?br>



鍖楅涔嬬007 2007-08-25 20:28 鍙戣〃璇勮
]]>
VC6.0鎬庝箞鏍蜂嬌鐢╩oc緙栬瘧http://www.shnenglu.com/cc/archive/2007/08/13/29932.html鍖楅涔嬬007鍖楅涔嬬007Mon, 13 Aug 2007 13:32:00 GMThttp://www.shnenglu.com/cc/archive/2007/08/13/29932.htmlhttp://www.shnenglu.com/cc/comments/29932.htmlhttp://www.shnenglu.com/cc/archive/2007/08/13/29932.html#Feedback0http://www.shnenglu.com/cc/comments/commentRss/29932.htmlhttp://www.shnenglu.com/cc/services/trackbacks/29932.html鐜板湪鍦ㄥ涔?fàn)QT鐣岄潰寮鍙戯紝鍦╳indows鐜涓嬭浜唙c6鍜孮T3.3.4鐗堟湰鐨勫紑鍙戝寘錛岃濂戒箣鍚庡氨鍙互鍦╒C闆嗘垚寮鍙戠幆澧冧笅浜х敓涓涓伐鍏鋒爮榪涜QT寮鍙戜簡銆傚湪瀛︿範(fàn)涔︿笂渚嬪瓙鐨勬椂鍊欙紝鎬繪槸鏈変簺浠g爜涓浣跨敤鍒癚_OBJECT瀹忥紝榪欐牱鎵嶅彲浠ヤ嬌鐢ㄨ嚜瀹氫箟鐨剆ignal榪樻湁slot浜嗭紝涓嶈繃璇曚簡濂藉嬈¢兘緙栬瘧涓嶆垚鍔燂紝濂藉儚鏄渶瑕佷粈涔坢oc緙栬瘧錛岀湡鏄檿錛屼功涓婁篃娌℃湁璇磋繖涓紝閭d簺鑷甫鐨勪緥瀛愰兘鏄彲浠ョ紪璇戠殑錛岀洿鎺ョ敤宸ュ叿鏍忎笂闈㈢殑閭d釜moc涔熶笉綆$敤錛岃鏄綘鐭ラ亾浣犲氨鍛婅瘔鎴戜笅鎬庝箞鐢ㄣ?br>
鏌ヤ簡涓嬭祫鏂欙紝moc灝辨槸鍏冨璞$紪紼嬨?br>
鍏冨璞$紪璇戝櫒璇誨彇涓涓狢++婧愭枃浠躲傚鏋滃畠鍙戠幇鍏朵腑鐨勪竴涓垨澶氫釜綾葷殑澹版槑涓惈鏈塓_OBJECT瀹忥紝瀹冨氨浼?xì)缁櫂q欎釜浣跨敤Q_OBJECT瀹忕殑綾葷敓鎴愬彟澶栦竴涓寘鍚厓瀵硅薄浠g爜鐨凜++婧愭枃浠躲傚挨鍏舵槸錛屽厓瀵硅薄浠g爜瀵逛俊鍙?妲芥満鍒躲佽繍琛屾椂綾誨瀷淇℃伅鍜屽姩鎬佸睘鎬х郴緇熸槸闇瑕佺殑銆?
涓涓鍏冨璞$紪璇戝櫒鐢熸垚鐨凜++婧愭枃浠跺繀欏誨拰榪欎釜綾葷殑瀹炵幇涓璧瘋緙栬瘧鍜岃繛鎺ワ紙鎴栬呭畠琚寘鍚埌錛?include錛夎繖涓被鐨勬簮鏂囦歡涓級銆?
濡傛灉浣犳槸鐢╭make鏉ョ敓鎴愪綘鐨凪akefile鏂囦歡錛屽綋闇瑕佺殑鏃跺欙紝緙栬瘧瑙勫垯涓渶瑕佸寘鍚皟鐢ㄥ厓瀵硅薄緙栬瘧鍣紝鎵浠ヤ綘涓嶉渶瑕佺洿鎺ヤ嬌鐢ㄥ厓瀵硅薄緙栬瘧鍣ㄣ?br>
榪欓噷鎻愪緵涓縐嶆柟娉曪細(xì)綾葷殑澹版槑鏀懼湪涓涓ご鏂囦歡錛?h鏂囦歡錛変腑
濡傛灉鍦ㄤ笂榪扮殑鏂囦歡myclass.h涓彂鐜扮被鐨勫0鏄庯紝鍏冨璞$紪璇戝櫒鐨勮緭鍑烘枃浠跺皢浼?xì)琚攽譁ㄤ竴涓彨moc_myclass.cpp鐨勬枃浠朵腑銆傝繖涓枃浠跺皢浼?xì)鍍忛氬父鎯呭喌涓鏍瘋緙栬瘧錛屼綔涓哄璞℃枃浠剁殑緇撴灉鏄痬oc_myclass.o錛堝湪Unix涓嬶級鎴栬卪oc_myclass.obj錛堝湪Windows涓嬶級銆傝繖涓璞℃帴鐫灝嗕細(xì)琚寘鍚埌涓涓璞℃枃浠跺垪琛ㄤ腑錛屽畠浠皢浼?xì)鍦ńE嬪簭鐨勬渶鍚庤繛緙栭樁孌佃榪炴帴鍦ㄤ竴璧楓?

鐒跺悗鍦?br>
錛?錛夊湪FileView瑙嗗浘涓?鍙抽敭鐐瑰嚮闇瑕佷駭鐢烳OC鏂囦歡鐨勫ご鏂囦歡錛堝氨鏄被涓寘鍚玅_OBJECT瀹忥紝濡傛灉娌℃湁榪欎釜瀹忓氨涓嶉渶瑕佷駭鐢烳OC鏂囦歡錛?br>
錛?錛夊湪鍙抽敭鑿滃崟涓夋嫨Setting...

錛?錛夐夋嫨Custom Build錛屽湪Commands鏍忎腑杈撳叆錛?br>%QTDIR%\bin\moc.exe $(InputDir)\$(InputName).h -o $(InputDir)\moc_$(InputName).cpp

Outputs涓緭鍏ワ細(xì)
$(InputDir)\moc_$(InputName).cpp

錛?錛夌劧鍚庡彸閿繖涓ご鏂囦歡緙栬瘧


(5)鏈鍚庣敓鎴愪竴涓?moc緙栬瘧浜х敓鐨刢pp婧愭枃浠?br>

榪欐牱緙栬瘧鏃跺氨浼?xì)鍦ㄥ綋鍓嶅伐绋嬬洰褰曚腑鑷姩鐢熸垚MOC鏂囦歡浜?br>
鏈枃鍙傝?qt鏂囨。浠ュ強(qiáng)http://www.qobject.com/read.php?fid=46&tid=2296&toread=1 鐨勬枃绔犮?br>
璋㈣阿錛?br>




鍖楅涔嬬007 2007-08-13 21:32 鍙戣〃璇勮
]]>
Qt涓腑鏂囧鐞嗙殑綆鍗曟柟娉?/title><link>http://www.shnenglu.com/cc/archive/2007/07/29/28973.html</link><dc:creator>鍖楅涔嬬007</dc:creator><author>鍖楅涔嬬007</author><pubDate>Sun, 29 Jul 2007 08:39:00 GMT</pubDate><guid>http://www.shnenglu.com/cc/archive/2007/07/29/28973.html</guid><wfw:comment>http://www.shnenglu.com/cc/comments/28973.html</wfw:comment><comments>http://www.shnenglu.com/cc/archive/2007/07/29/28973.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cc/comments/commentRss/28973.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cc/services/trackbacks/28973.html</trackback:ping><description><![CDATA[<span style="COLOR: #020000">    QT鏄竴濂楀緢涓嶉敊鐨勭晫闈㈠紑鍙戝簱錛岃屼笖鑰冭檻鍒頒簡璺ㄥ鉤鍙扮殑瑕佹眰錛屼嬌鐢ㄤ篃鐩稿姣旇緝瀹規(guī)槗涓婃墜銆傛垜涔熷垰鍒氭墠瀛︿範(fàn)鐢≦T寮鍙戯紝鍙戠幇瀹冨涓枃鐨勫鐞嗗仛鐨勪笉鏄緢濂斤紝鎴栬呮洿璐村垏鐨勬槸鍋氱殑涓嶅鏅鴻兘鍚э紝濡傛灉鍦ㄥ瓧絎︿覆涓緭鍏ヤ腑鏂囷紝鏄劇ず鐨勫氨浼?xì)鏄罐q爜銆?br><br>    涓嬮潰灝變粙緇嶄竴涓畝鍗曠殑鏂規(guī)硶錛岃鎴戜滑鐨勪腑鏂囨紜樉紺哄嚭鏉ワ紝鍏堢湅涓孌電▼搴忥紝璇ョ▼搴忎富瑕佸姛鑳藉氨鏄樉紺轟竴涓獥鍙o紝紿楀彛涓婇潰鐨勬寜閽樉紺轟腑鏂囥?br><br> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="COLOR: #008080"> 1</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qapplication.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qpushbutton.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qfont.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qvbox.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qtextcodec.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qstring.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qobject.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> argc, </span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">**</span><span style="COLOR: #000000">argv)<br></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">    QApplication a(argc,argv);<br></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000">    <br></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000">    QVBox box;<br></span><span style="COLOR: #008080">13</span> <span style="COLOR: #000000">    box.resize(</span><span style="COLOR: #000000">200</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">120</span><span style="COLOR: #000000">);<br></span><span style="COLOR: #008080">14</span> <span style="COLOR: #000000">    QPushButton quit(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">閫鍑?/span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">box)</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">15</span> <span style="COLOR: #000000">    quit.setFont( QFont( </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Times</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, </span><span style="COLOR: #000000">18</span><span style="COLOR: #000000">, QFont::Bold ) );</span><span style="COLOR: #008080"></span><span style="COLOR: #000000"></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">16</span> <span style="COLOR: #000000">    QObject::connect(</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">quit,SIGNAL(clicked()),</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">a,SLOT(quit()));<br></span><span style="COLOR: #008080">17</span> <span style="COLOR: #000000">    a.setMainWidget(</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">box);<br></span><span style="COLOR: #008080">18</span> <span style="COLOR: #000000">    box.show();<br></span><span style="COLOR: #008080">19</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> a.exec();<br></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">}<br></span><span style="COLOR: #008080"></span><span style="COLOR: #000000"></span></div> <br><span style="COLOR: #040000">鍦╲c6.0涓嬮潰緙栬瘧榪愯紼嬪簭涔嬪悗鎴戜滑浼?xì)瑙佸埌鐣岄潰濡備笅锛屼絾鏄笂闈㈢殑鎸夐挳鍗存槸湄曠爜浜嗐?br><br></span></span> <div style="TEXT-ALIGN: center"><span style="COLOR: #020000"><img height=127 alt="" src="http://www.shnenglu.com/images/cppblog_com/cc/2007_7/lm.png" width=208></span><br><span style="COLOR: #020000"></span></div> <span style="COLOR: #020000"><br style="COLOR: #040000"><span style="COLOR: #040000">閭f垜浠鎬庝箞鍔炲憿錛熷埆鐫鎬ワ紝鍏跺疄鏂規(guī)硶寰堢畝鍗曪紝涓昏鎬濊礬灝辨槸緇欏簲鐢ㄨ瀹氫竴涓瓧絎﹂泦錛屽茍涓旀妸瑕佹樉紺虹殑瀛楃鍋氶傚綋鐨勮漿鍖栧鐞嗗氨鍙互浜嗭紝璇磋搗鏉ュソ鍍忚繕鏈変簺澶嶆潅錛屼絾鏄湅鐪嬩唬鐮佷綘灝卞緢蹇槑鐧戒簡銆?/span><br><br><br> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="COLOR: #008080"> 1</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qapplication.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qpushbutton.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qfont.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qvbox.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qtextcodec.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qstring.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">#include </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">qobject.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> argc, </span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">**</span><span style="COLOR: #000000">argv)<br></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">    QApplication a(argc,argv);<br></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000; BACKGROUND-COLOR: yellow">    a.setDefaultCodec(QTextCodec::codecForName(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">GBK</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">));<br></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000">    QVBox box;<br></span><span style="COLOR: #008080">13</span> <span style="COLOR: #000000">    box.resize(</span><span style="COLOR: #000000">200</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">120</span><span style="COLOR: #000000">);<br></span><span style="COLOR: #008080">14</span> <span style="COLOR: #000000; BACKGROUND-COLOR: yellow">    QPushButton quit(QObject::tr(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">閫鍑?/span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">),</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">box);<br></span><span style="COLOR: #008080">15</span> <span style="COLOR: #000000">    quit.setFont( QFont( </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Times</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, </span><span style="COLOR: #000000">18</span><span style="COLOR: #000000">, QFont::Bold ) );<br></span><span style="COLOR: #008080">16</span> <span style="COLOR: #000000">    QObject::connect(</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">quit,SIGNAL(clicked()),</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">a,SLOT(quit()));<br></span><span style="COLOR: #008080">17</span> <span style="COLOR: #000000">    a.setMainWidget(</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">box);<br></span><span style="COLOR: #008080">18</span> <span style="COLOR: #000000">    box.show();<br></span><span style="COLOR: #008080">19</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> a.exec();<br></span><span style="COLOR: #008080">20</span> <span style="COLOR: #000000">}</span></div> <br></span><span style="COLOR: #020000"><br><span style="COLOR: #040000">鍦╲c6.0涓嬮潰緙栬瘧榪愯紼嬪簭涔嬪悗鎴戜滑浼?xì)瑙佸埌鐣岄潰濡備笅锛寴q欎釜鏃跺欏氨鏄劇ず姝e父浜嗐?/span><br><br></span> <div style="TEXT-ALIGN: center"><span style="COLOR: #020000"><img height=147 alt="" src="http://www.shnenglu.com/images/cppblog_com/cc/2007_7/zc.png" width=208><br><br></span> <div style="TEXT-ALIGN: left">浠g爜鍒嗘瀽錛?br>  涓婇潰鐨勪袱孌典唬鐮佸熀鏈笂鏄ぇ鍚屽皬寮傦紝娌℃湁澶氬ぇ鐨勫樊鍒紝紼嬪簭鐨勫叿浣撳惈涔夎繖閲屾垜涓嶅仛浠嬬粛錛屽彧璁蹭竴涓嬩袱孌典唬鐮佺殑鍖哄埆錛岃涓婁緥涓唬鐮佺殑榛勮壊閮ㄥ垎錛岃閮ㄥ垎灝辨槸涓轟腑鏂囨樉紺烘墍鍋氬嚭鐨勬敼榪涖?br> setDefaultCodec(QTextCodec::codecForName("GBK"));<br>鏌ラ槄浜唓t鐨勫嚱鏁板府鍔╁彲鐭ワ紝<br>setDefaultCodec鐨勪綔鐢ㄥ涓嬶細(xì)<br>void QApplication::setDefaultCodec ( QTextCodec * codec ) <br>璁劇疆搴旂敤紼嬪簭鐨勯粯璁ょ紪瑙g爜鍣ㄤ負(fù)codec銆?<br>濡傛灉紼嬪簭涓殑鏂囧瓧寮曠敤鏂囨湰涓嶆槸Latin1緙栫爜錛岃繖涓嚱鏁板彲浠ョ敤鏉ヨ緗悎閫傜殑緙栫爜銆備緥濡傦紝闊╁浗紼嬪簭鍛樺紑鍙戠殑杞歡鍦ㄧ▼搴忎腑瀵規(guī)墍鏈夋枃鏈彲浠ヤ嬌鐢╡ucKR錛岃繖縐嶆儏鍐典笅錛宮ain()鍑芥暟鍙兘鐪嬭搗鏉ュ儚榪欐牱錛?<br><br>    int main(int argc, char** argv)<br>    {<br>        QApplication app(argc, argv);<br>        ... install any additional codecs ...<br>        app.setDefaultCodec( QTextCodec::codecForName("eucKR") );<br>        ...<br>    }<br>  <br><span style="COLOR: #000000">娉ㄦ剰錛岃繖涓嶆槸鐢ㄦ埛鏉ラ夋嫨緙栫爜鐨勬柟寮忋備緥濡傦紝鎶婁竴涓寘鍚嫳璇瓧絎︿覆鐨勫簲鐢ㄧ▼搴忚漿鎹負(fù)闊╄錛屾墍闇瑕佸仛鐨勪竴鍒囧氨鏄浜庢墍鏈夌殑鑻辮瀛楃涓查氳繃tr()浼犻掑茍涓旇澆鍏ョ炕璇戞枃浠躲傛湁鍏沖浗闄呭寲鐨勮緇嗘儏鍐碉紝璇峰弬鑰僎t鍥介檯鍖栨枃妗c?<br>娉ㄦ剰涔熸湁涓浜決t鍐呯疆綾諱負(fù)涓嶅悓鐨勫瓧絎︿覆璋冪敤tr()銆傝繖浜涘瓧絎︿覆浣跨敤鑻辮錛屾墍浠ュ浜庡畬鏁寸殑緲昏瘧錛岀紪瑙g爜鍣ㄥ皢琚繖浜涘瓧絎︿覆闇瑕併?br></span><br><br>QPushButton quit(QObject::tr("閫鍑?),&box);<br>tr()鍑芥暟鐨勮鏄庡涓嬶細(xì)<br>QString QObject::tr ( const char * sourceText, const char * comment ) const <br>榪斿洖sourceText鐨勭炕璇戠増鏈紝鎴栬呭鏋滄病鏈夊悎閫傜殑鐗堟湰榪斿洖sourceText瀹冭嚜宸便傜炕璇戜笂涓嬫枃鏄痗omment鐨凲Object錛堥粯璁や負(fù)絀猴級銆傛墍鏈変嬌鐢≦_OBJECT瀹忕殑QObject瀵硅薄鏈夎繖涓嚱鏁扮殑閲嶆柊瀹炵幇錛屾妸瀛愮被鍚嶄綔涓轟笂涓嬫枃銆?<br>涔熷彲浠ュ弬鑰僼rUtf8()銆丵Application::translate()鍜孮t涓殑鍥介檯鍖栥?<br>瀹炰緥錛歯etwork/networkprotocol/view.cpp銆?<br>QString QObject::trUtf8 ( const char * sourceText, const char * comment ) const <br>榪斿洖sourceText鐨勭炕璇戠増鏈紝鎴栬呭鏋滄病鏈夊悎閫傜殑鐗堟湰榪斿洖QString::fromUtf8(sourceText)銆傚畠鏄彟涓縐峵r(sourceText, comment)銆?<br>涔熷彲浠ュ弬鑰僼r()鍜孮Application::translate()銆?<br><br></div> <div style="TEXT-ALIGN: left"><span style="COLOR: #020000">涓や釜鍑芥暟鐨勪綔鐢ㄤ竴涓敤鏉ヨ瀹氬瓧絎﹂泦涓涓槸鐢ㄦ潵榪涜瀛楃涓茶漿鍖栵紝鍒氬ソ婊¤凍浜嗗墠闈㈡彁鍒扮殑鎬濊礬錛屼簨鎯呭氨鏄繖鏍風(fēng)殑錛屽懙鍛碉紝灝卞啓鍒拌繖閲岋紝甯屾湜瀵逛綘鏈夌敤銆?/span><br><span style="COLOR: #020000"></span></div> <span style="COLOR: #020000"></span></div><img src ="http://www.shnenglu.com/cc/aggbug/28973.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cc/" target="_blank">鍖楅涔嬬007</a> 2007-07-29 16:39 <a href="http://www.shnenglu.com/cc/archive/2007/07/29/28973.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <a href="http://www.shnenglu.com/">青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品</a> <div style="position:fixed;left:-9000px;top:-9000px;"><font id="pjuwb"></font><button id="pjuwb"><pre id="pjuwb"></pre></button><sub id="pjuwb"></sub><tbody id="pjuwb"><var id="pjuwb"><address id="pjuwb"></address></var></tbody><listing id="pjuwb"><label id="pjuwb"><strong id="pjuwb"></strong></label></listing><wbr id="pjuwb"><small id="pjuwb"><tbody id="pjuwb"></tbody></small></wbr><ins id="pjuwb"><xmp id="pjuwb"></xmp></ins><style id="pjuwb"></style><label id="pjuwb"><em id="pjuwb"><li id="pjuwb"></li></em></label><samp id="pjuwb"></samp><menu id="pjuwb"><input id="pjuwb"></input></menu><pre id="pjuwb"><tbody id="pjuwb"><tfoot id="pjuwb"><button id="pjuwb"></button></tfoot></tbody></pre><form id="pjuwb"></form><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"><sup id="pjuwb"></sup></label></style></i><li id="pjuwb"><table id="pjuwb"><abbr id="pjuwb"></abbr></table></li><video id="pjuwb"></video><dfn id="pjuwb"></dfn><progress id="pjuwb"></progress><strong id="pjuwb"></strong><mark id="pjuwb"></mark><em id="pjuwb"></em><tbody id="pjuwb"><p id="pjuwb"><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike></p></tbody><option id="pjuwb"></option><strike id="pjuwb"></strike><u id="pjuwb"></u><td id="pjuwb"><center id="pjuwb"><tr id="pjuwb"></tr></center></td><em id="pjuwb"><mark id="pjuwb"><em id="pjuwb"><tt id="pjuwb"></tt></em></mark></em><strong id="pjuwb"></strong><wbr id="pjuwb"></wbr><s id="pjuwb"></s><strong id="pjuwb"></strong><legend id="pjuwb"></legend><nav id="pjuwb"></nav><dl id="pjuwb"><th id="pjuwb"><dl id="pjuwb"></dl></th></dl><noframes id="pjuwb"><ins id="pjuwb"></ins></noframes><font id="pjuwb"></font><strike id="pjuwb"><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"></label></style></i></strike><output id="pjuwb"></output><thead id="pjuwb"><pre id="pjuwb"></pre></thead><source id="pjuwb"></source><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem><pre id="pjuwb"><span id="pjuwb"><pre id="pjuwb"><big id="pjuwb"></big></pre></span></pre><cite id="pjuwb"><fieldset id="pjuwb"><s id="pjuwb"><rt id="pjuwb"></rt></s></fieldset></cite><big id="pjuwb"><progress id="pjuwb"><big id="pjuwb"></big></progress></big><samp id="pjuwb"><delect id="pjuwb"></delect></samp><dl id="pjuwb"></dl><strike id="pjuwb"><nav id="pjuwb"><dl id="pjuwb"><strong id="pjuwb"></strong></dl></nav></strike><tbody id="pjuwb"><b id="pjuwb"><optgroup id="pjuwb"><rp id="pjuwb"></rp></optgroup></b></tbody><em id="pjuwb"></em><xmp id="pjuwb"><blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote></xmp> <i id="pjuwb"><abbr id="pjuwb"><i id="pjuwb"><abbr id="pjuwb"></abbr></i></abbr></i><center id="pjuwb"><acronym id="pjuwb"><center id="pjuwb"></center></acronym></center><pre id="pjuwb"></pre><ul id="pjuwb"><thead id="pjuwb"></thead></ul><blockquote id="pjuwb"><pre id="pjuwb"><sup id="pjuwb"></sup></pre></blockquote><acronym id="pjuwb"></acronym><big id="pjuwb"><s id="pjuwb"></s></big><th id="pjuwb"></th><th id="pjuwb"></th><tbody id="pjuwb"></tbody><thead id="pjuwb"><strike id="pjuwb"></strike></thead><th id="pjuwb"><dl id="pjuwb"><wbr id="pjuwb"></wbr></dl></th><dl id="pjuwb"><strong id="pjuwb"></strong></dl><abbr id="pjuwb"><noframes id="pjuwb"><noscript id="pjuwb"></noscript></noframes></abbr><td id="pjuwb"><ol id="pjuwb"></ol></td><li id="pjuwb"><noscript id="pjuwb"><abbr id="pjuwb"></abbr></noscript></li><small id="pjuwb"><bdo id="pjuwb"><nav id="pjuwb"></nav></bdo></small><style id="pjuwb"></style><optgroup id="pjuwb"><table id="pjuwb"></table></optgroup><center id="pjuwb"><tr id="pjuwb"><dfn id="pjuwb"></dfn></tr></center><th id="pjuwb"></th><u id="pjuwb"></u><tfoot id="pjuwb"><legend id="pjuwb"><i id="pjuwb"></i></legend></tfoot><mark id="pjuwb"></mark><meter id="pjuwb"></meter><nav id="pjuwb"></nav><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><nobr id="pjuwb"></nobr><sub id="pjuwb"><th id="pjuwb"><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem></th></sub><thead id="pjuwb"><sub id="pjuwb"></sub></thead><ul id="pjuwb"><address id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></address></ul><dfn id="pjuwb"></dfn><pre id="pjuwb"></pre><input id="pjuwb"><cite id="pjuwb"><fieldset id="pjuwb"></fieldset></cite></input><u id="pjuwb"><form id="pjuwb"><u id="pjuwb"></u></form></u><kbd id="pjuwb"><em id="pjuwb"><mark id="pjuwb"></mark></em></kbd><tr id="pjuwb"></tr><del id="pjuwb"><form id="pjuwb"><address id="pjuwb"></address></form></del><tfoot id="pjuwb"><legend id="pjuwb"><ol id="pjuwb"><dl id="pjuwb"></dl></ol></legend></tfoot><menu id="pjuwb"><nobr id="pjuwb"><th id="pjuwb"><nobr id="pjuwb"></nobr></th></nobr></menu><fieldset id="pjuwb"></fieldset><pre id="pjuwb"><blockquote id="pjuwb"><samp id="pjuwb"></samp></blockquote></pre><xmp id="pjuwb"><sup id="pjuwb"><pre id="pjuwb"></pre></sup></xmp><span id="pjuwb"><progress id="pjuwb"></progress></span><font id="pjuwb"></font><var id="pjuwb"><abbr id="pjuwb"></abbr></var><strong id="pjuwb"><label id="pjuwb"><i id="pjuwb"><legend id="pjuwb"></legend></i></label></strong><tr id="pjuwb"><em id="pjuwb"><em id="pjuwb"><output id="pjuwb"></output></em></em></tr><thead id="pjuwb"><strike id="pjuwb"></strike></thead> <acronym id="pjuwb"></acronym><i id="pjuwb"></i><tt id="pjuwb"></tt><rt id="pjuwb"><source id="pjuwb"><rt id="pjuwb"></rt></source></rt><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike><del id="pjuwb"></del><font id="pjuwb"><output id="pjuwb"><ins id="pjuwb"><output id="pjuwb"></output></ins></output></font><kbd id="pjuwb"><tr id="pjuwb"><kbd id="pjuwb"></kbd></tr></kbd><pre id="pjuwb"><sup id="pjuwb"><delect id="pjuwb"><samp id="pjuwb"></samp></delect></sup></pre><samp id="pjuwb"></samp><track id="pjuwb"></track><tr id="pjuwb"></tr><center id="pjuwb"></center><fieldset id="pjuwb"></fieldset><i id="pjuwb"></i><td id="pjuwb"></td><rt id="pjuwb"></rt><object id="pjuwb"></object><pre id="pjuwb"><progress id="pjuwb"><sub id="pjuwb"><thead id="pjuwb"></thead></sub></progress></pre><kbd id="pjuwb"><tr id="pjuwb"><option id="pjuwb"></option></tr></kbd><output id="pjuwb"><ins id="pjuwb"></ins></output><ol id="pjuwb"></ol><source id="pjuwb"></source><strong id="pjuwb"></strong><ruby id="pjuwb"></ruby><sub id="pjuwb"><meter id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></meter></sub><pre id="pjuwb"></pre><center id="pjuwb"></center><tr id="pjuwb"><tbody id="pjuwb"><xmp id="pjuwb"><dd id="pjuwb"></dd></xmp></tbody></tr><video id="pjuwb"></video><pre id="pjuwb"></pre><form id="pjuwb"><optgroup id="pjuwb"></optgroup></form><samp id="pjuwb"></samp><kbd id="pjuwb"></kbd><strong id="pjuwb"><option id="pjuwb"></option></strong><object id="pjuwb"></object><abbr id="pjuwb"><noframes id="pjuwb"><abbr id="pjuwb"></abbr></noframes></abbr><ul id="pjuwb"><del id="pjuwb"><button id="pjuwb"><pre id="pjuwb"></pre></button></del></ul><abbr id="pjuwb"></abbr><strong id="pjuwb"><code id="pjuwb"><strong id="pjuwb"></strong></code></strong><option id="pjuwb"></option><optgroup id="pjuwb"><bdo id="pjuwb"><code id="pjuwb"></code></bdo></optgroup><mark id="pjuwb"><em id="pjuwb"><font id="pjuwb"></font></em></mark><acronym id="pjuwb"><code id="pjuwb"></code></acronym><dl id="pjuwb"></dl><em id="pjuwb"></em><object id="pjuwb"><input id="pjuwb"><object id="pjuwb"></object></input></object><output id="pjuwb"><dd id="pjuwb"></dd></output><option id="pjuwb"><button id="pjuwb"><option id="pjuwb"></option></button></option><small id="pjuwb"></small></div> <a href="http://688528.com" target="_blank">亚洲免费成人</a>| <a href="http://605054.com" target="_blank">9国产精品视频</a>| <a href="http://www225011.com" target="_blank">久久av资源网站</a>| <a href="http://www38ccc.com" target="_blank">这里只有精品丝袜</a>| <a href="http://jxjx11.com" target="_blank">欧美亚洲第一区</a>| <a href="http://www-23918.com" target="_blank">亚洲欧美成人综合</a>| <a href="http://www-067.com" target="_blank">午夜久久福利</a>| <a href="http://cl6m.com" target="_blank">雨宫琴音一区二区在线</a>| <a href="http://678255.com" target="_blank">欧美激情精品久久久久</a>| <a href="http://vipaiqiyi.com" target="_blank">欧美精品一区二</a>| <a href="http://10669p.com" target="_blank">亚洲午夜影视影院在线观看</a>| <a href="http://7a7d.com" target="_blank">亚洲一区二区网站</a>| <a href="http://xdlot.com" target="_blank">韩日成人av</a>| <a href="http://www49718.com" target="_blank">亚洲日本免费</a>| <a href="http://8410555.com" target="_blank">国产精品久久久久天堂</a>| <a href="http://566805.com" target="_blank">久久人人精品</a>| <a href="http://ridenimbus.com" target="_blank">欧美黄色一区</a>| <a href="http://www-5888c.com" target="_blank">欧美一区二区三区电影在线观看</a>| <a href="http://excellentjy.com" target="_blank">亚洲欧洲99久久</a>| <a href="http://91chaopron.com" target="_blank">亚洲国产老妈</a>| <a href="http://www381818.com" target="_blank">亚洲视频观看</a>| <a href="http://111491.com" target="_blank">影音先锋久久精品</a>| <a href="http://my736.com" target="_blank">999在线观看精品免费不卡网站</a>| <a href="http://xiaoyaer.com" target="_blank">国产精品久久久久久久9999</a>| <a href="http://430390.com" target="_blank">久久综合色8888</a>| <a href="http://www-9694.com" target="_blank">欧美日韩精品国产</a>| <a href="http://8p3c.com" target="_blank">久久久成人网</a>| <a href="http://xaipad.com" target="_blank">欧美激情精品久久久久久免费印度 </a>| <a href="http://sdluliang.com" target="_blank">亚洲欧美国产高清va在线播</a>| <a href="http://770456.com" target="_blank">激情小说亚洲一区</a>| <a href="http://avtb2120.com" target="_blank">亚洲精品婷婷</a>| <a href="http://9lunli.com" target="_blank">尤物精品国产第一福利三区 </a>| <a href="http://tyaisen.com" target="_blank">亚洲午夜精品一区二区</a>| <a href="http://428368.com" target="_blank">欧美影院在线播放</a>| <a href="http://278263.com" target="_blank">一区二区三区不卡视频在线观看</a>| <a href="http://5b6c.com" target="_blank">欧美一区二区三区日韩视频</a>| <a href="http://y65k.com" target="_blank">9l视频自拍蝌蚪9l视频成人</a>| <a href="http://by777131.com" target="_blank">久久国产精品网站</a>| <a href="http://www520590.com" target="_blank">久久se精品一区精品二区</a>| <a href="http://0070571.com" target="_blank">亚洲老板91色精品久久</a>| <a href="http://www-333410.com" target="_blank">性欧美xxxx大乳国产app</a>| <a href="http://xzvaz.com" target="_blank">99国产精品久久久久老师 </a>| <a href="http://r6r4.com" target="_blank">亚洲激情国产</a>| <a href="http://8xv0.com" target="_blank">狠狠色丁香婷婷综合</a>| <a href="http://kk8586.com" target="_blank">一本在线高清不卡dvd</a>| <a href="http://avtt59999.com" target="_blank">影音先锋久久久</a>| <a href="http://cbb188.com" target="_blank">亚洲欧美国产一区二区三区</a>| <a href="http://www-36900.com" target="_blank">日韩一二三在线视频播</a>| <a href="http://proenhub.com" target="_blank">久久久水蜜桃av免费网站</a>| <a href="http://0999555.com" target="_blank">亚洲欧美综合国产精品一区</a>| <a href="http://8004006.com" target="_blank">欧美激情国产日韩</a>| <a href="http://clwjbcxs.com" target="_blank">噜噜噜噜噜久久久久久91</a>| <a href="http://457745.com" target="_blank">国产精品视频免费观看</a>| <a href="http://caowo65.com" target="_blank">亚洲乱亚洲高清</a>| <a href="http://yahuake.com" target="_blank">亚洲精品在线二区</a>| <a href="http://cao2014.com" target="_blank">久久影院午夜论</a>| <a href="http://7mxing.com" target="_blank">久久综合网色—综合色88</a>| <a href="http://filmcameralibrary.com" target="_blank">国产精品第13页</a>| <a href="http://www13256.com" target="_blank">99ri日韩精品视频</a>| <a href="http://8013sf.com" target="_blank">99成人在线</a>| <a href="http://xiaobi13.com" target="_blank">欧美激情免费观看</a>| <a href="http://chufengguanye.com" target="_blank">欧美激情在线播放</a>| <a href="http://qcjpns.com" target="_blank">91久久精品www人人做人人爽 </a>| <a href="http://bocai4488.com" target="_blank">一区二区三区四区五区视频 </a>| <a href="http://whmingtong.com" target="_blank">影音先锋一区</a>| <a href="http://xxxx90.com" target="_blank">欧美中文字幕不卡</a>| <a href="http://yishangsh.com" target="_blank">久久本道综合色狠狠五月</a>| <a href="http://toomicsvip.com" target="_blank">国产精品视频一区二区三区</a>| <a href="http://5gn4y.com" target="_blank">一道本一区二区</a>| <a href="http://poqsoft.com" target="_blank">亚洲一区区二区</a>| <a href="http://tk99444.com" target="_blank">欧美色中文字幕</a>| <a href="http://ffff53.com" target="_blank">亚洲视频中文字幕</a>| <a href="http://3dprintingferuima.com" target="_blank">亚洲午夜在线视频</a>| <a href="http://tsjcmm.com" target="_blank">国产精品国产精品</a>| <a href="http://a718sx.com" target="_blank">亚洲一区二区网站</a>| <a href="http://www123hao.com" target="_blank">久久精品国产精品</a>| <a href="http://di4see.com" target="_blank">狠狠入ady亚洲精品经典电影</a>| <a href="http://www33779.com" target="_blank">欧美在线亚洲</a>| <a href="http://chainhuayu.com" target="_blank">久久中文字幕一区二区三区</a>| <a href="http://winkwink333.com" target="_blank">韩日在线一区</a>| <a href="http://ccc982.com" target="_blank">免费看精品久久片</a>| <a href="http://winkwink333.com" target="_blank">亚洲精品国偷自产在线99热</a>| <a href="http://ckk755.com" target="_blank">亚洲视频第一页</a>| <a href="http://ad377.com" target="_blank">国产九九精品</a>| <a href="http://dv6699.com" target="_blank">久久久久一区二区三区四区</a>| <a href="http://junmatek.com" target="_blank">欧美好骚综合网</a>| <a href="http://heshundadi.com" target="_blank">一区二区三区精品国产</a>| <a href="http://baluka-tw.com" target="_blank">国产精品国产三级国产普通话蜜臀</a>| <a href="http://www-13413.com" target="_blank">一区二区三区高清</a>| <a href="http://tom3958.com" target="_blank">久久乐国产精品</a>| <a href="http://2312138.com" target="_blank">亚洲欧洲精品一区二区精品久久久</a>| <a href="http://xjj733.com" target="_blank">欧美福利一区</a>| <a href="http://10669p.com" target="_blank">亚洲免费在线</a>| <a href="http://cn1898.com" target="_blank">欧美成人日韩</a>| <a href="http://sanlans888.com" target="_blank">一区二区三区黄色</a>| <a href="http://4kmz.com" target="_blank">国产色综合网</a>| <a href="http://hbshwx.com" target="_blank">久久久久9999亚洲精品</a>| <a href="http://www94816.com" target="_blank">伊人成人在线视频</a>| <a href="http://www4848xx.com" target="_blank">欧美日韩国产123</a>| <a href="http://zb557.com" target="_blank">亚洲欧美日韩综合国产aⅴ</a>| <a href="http://848585.com" target="_blank">美女久久一区</a>| <a href="http://yeepey.com" target="_blank">亚洲一区在线看</a>| <a href="http://www344399.com" target="_blank">国模精品娜娜一二三区</a>| <a href="http://xiaofan123.com" target="_blank">欧美高清你懂得</a>| <a href="http://337791.com" target="_blank">亚洲欧美视频一区</a>| <a href="http://412342.com" target="_blank">亚洲欧洲一级</a>| <a href="http://gdvapar.com" target="_blank">久久视频一区二区</a>| <a href="http://55555549.com" target="_blank">亚洲夜间福利</a>| <a href="http://df7166.com" target="_blank">亚洲大片免费看</a>| <a href="http://huayoue.com" target="_blank">国产精品美女主播</a>| <a href="http://91pinping.com" target="_blank">欧美91精品</a>| <a href="http://6666345.com" target="_blank">亚洲欧美日韩国产综合</a>| <a href="http://china391.com" target="_blank">亚洲高清自拍</a>| <a href="http://7885888.com" target="_blank">久久久久久电影</a>| <a href="http://junmatek.com" target="_blank">一区二区不卡在线视频 午夜欧美不卡在 </a>| <a href="http://www11108b.com" target="_blank">亚洲精品欧美一区二区三区</a>| <a href="http://226671.com" target="_blank">欧美一区国产在线</a>| <a href="http://www8xoy.com" target="_blank">亚洲毛片在线</a>| <a href="http://yzxq520.com" target="_blank">尤物九九久久国产精品的特点</a>| <a href="http://1194123.com" target="_blank">欧美揉bbbbb揉bbbbb</a>| <a href="http://cswlts.com" target="_blank">裸体丰满少妇做受久久99精品</a>| <a href="http://diao66.com" target="_blank">亚洲午夜女主播在线直播</a>| <a href="http://3333347.com" target="_blank">欧美成人一区二区</a>| <a href="http://www-90422.com" target="_blank">久久精品一区二区三区中文字幕</a>| <a href="http://677968.com" target="_blank">一区二区三区免费看</a>| <a href="http://viwasmart.com" target="_blank">樱桃成人精品视频在线播放</a>| <a href="http://zyjxyx.com" target="_blank">国产精品系列在线</a>| <a href="http://9273829.com" target="_blank">欧美另类videos死尸</a>| <a href="http://www-5888c.com" target="_blank">久久尤物视频</a>| <a href="http://xashp.com" target="_blank">久久精品人人做人人爽</a>| <a href="http://cl5555.com" target="_blank">亚洲欧美精品suv</a>| <a href="http://dk13studio.com" target="_blank">99热在线精品观看</a>| <a href="http://www777788c.com" target="_blank">亚洲第一页在线</a>| <a href="http://3314133.com" target="_blank">欧美成人一品</a>| <a href="http://022291.com" target="_blank">欧美大尺度在线</a>| <a href="http://012492.com" target="_blank">久久夜色精品国产噜噜av</a>| <a href="http://mmpzyw.com" target="_blank">久久av一区</a>| <a href="http://xyyssa.com" target="_blank">久久岛国电影</a>| <a href="http://495177.com" target="_blank">欧美亚洲一区</a>| <a href="http://topjavhd.com" target="_blank">欧美一区二区精品</a>| <a href="http://spyfaw.com" target="_blank">亚洲欧美一区二区视频</a>| <a href="http://www-85489.com" target="_blank">亚洲视频欧美视频</a>| <a href="http://fengboll.com" target="_blank">亚洲视频成人</a>| <a href="http://irongxun.com" target="_blank">亚洲综合导航</a>| <a href="http://yye321.com" target="_blank">午夜国产欧美理论在线播放 </a>| <a href="http://725806.com" target="_blank">一区二区在线视频播放</a>| <a href="http://by56677.com" target="_blank">国产婷婷色一区二区三区四区</a>| <a href="http://www-5888c.com" target="_blank">国产精品免费区二区三区观看</a>| <a href="http://oksousou.com" target="_blank">国产精品a久久久久</a>| <a href="http://pppp95.com" target="_blank">欧美三级网页</a>| <a href="http://fsxinruiph.com" target="_blank">国产精品久久久</a>| <a href="http://32m8.com" target="_blank">国产精品一级在线</a>| <a href="http://ooonefteprompellets.com" target="_blank">国产精品乱看</a>| <a href="http://7885888.com" target="_blank">国产日产亚洲精品</a>| <a href="http://725443.com" target="_blank">亚洲裸体俱乐部裸体舞表演av</a>| <a href="http://6633kj.com" target="_blank">亚洲激情视频网</a>| <a href="http://xindefalv.com" target="_blank">亚洲欧洲综合另类</a>| <a href="http://www77vcd.com" target="_blank">妖精视频成人观看www</a>| <a href="http://628155.com" target="_blank">亚洲视频大全</a>| <a href="http://0370city.com" target="_blank">香港成人在线视频</a>| <a href="http://889644.com" target="_blank">久久免费视频一区</a>| <a href="http://www01614.com" target="_blank">欧美国产综合一区二区</a>| <a href="http://pear9.com" target="_blank">欧美日韩亚洲91</a>| <a href="http://www-440447.com" target="_blank">国产精品视频观看</a>| <a href="http://hgx123.com" target="_blank">国语对白精品一区二区</a>| <a href="http://777777hd.com" target="_blank">亚洲国产精品视频</a>| <a href="http://caihongie.com" target="_blank">夜色激情一区二区</a>| <a href="http://hbsmhy.com" target="_blank">午夜精品电影</a>| <a href="http://ycpeixun.com" target="_blank">鲁大师成人一区二区三区</a>| <a href="http://bauyu121.com" target="_blank">欧美激情91</a>| <a href="http://0370city.com" target="_blank">99一区二区</a>| <a href="http://ktt2048.com" target="_blank">午夜国产欧美理论在线播放</a>| <a href="http://dailymailnepal.com" target="_blank">久久精品首页</a>| <a href="http://www17bxbx.com" target="_blank">欧美成人影音</a>| <a href="http://playav999.com" target="_blank">国产精品久久久久久亚洲调教</a>| <a href="http://www99mmnn.com" target="_blank">国产在线观看一区</a>| <a href="http://6666345.com" target="_blank">亚洲精品乱码久久久久久蜜桃91</a>| <a href="http://jiejiesao8.com" target="_blank">中文网丁香综合网</a>| <a href="http://www-13413.com" target="_blank">久久免费视频这里只有精品</a>| <a href="http://www90aaa.com" target="_blank">欧美国产视频一区二区</a>| <a href="http://z10669.com" target="_blank">宅男精品视频</a>| <a href="http://woaigougou.com" target="_blank">久久天天躁狠狠躁夜夜爽蜜月 </a>| <a href="http://aidingcai.com" target="_blank">久久se精品一区精品二区</a>| <a href="http://592xyy.com" target="_blank">你懂的网址国产 欧美</a>| <a href="http://www92444.com" target="_blank">国产精品久久久久久福利一牛影视 </a>| <a href="http://jigu100.com" target="_blank">99视频日韩</a>| <a href="http://www-477499.com" target="_blank">午夜免费电影一区在线观看</a>| <a href="http://www11111111.com" target="_blank">美国十次成人</a>| <a href="http://ahhccz.com" target="_blank">国产伦精品一区二区三区免费</a>| <a href="http://483187.com" target="_blank">亚洲国产精品ⅴa在线观看 </a>| <a href="http://www62265.com" target="_blank">久久国产精品高清</a>| <a href="http://dy123456.com" target="_blank">亚洲第一色在线</a>| <a href="http://8x1080x.com" target="_blank">性18欧美另类</a>| <a href="http://8eya.com" target="_blank">欧美视频在线免费</a>| <a href="http://www11111111.com" target="_blank">亚洲国产美女</a>| <a href="http://www18998.com" target="_blank">久久国产精品亚洲va麻豆</a>| <a href="http://9113i.com" target="_blank">亚洲精品一区二区网址</a>| <a href="http://4hup23.com" target="_blank">久久精品99</a>| <a href="http://by777117.com" target="_blank">国产麻豆日韩</a>| <a href="http://www30bxbx.com" target="_blank">亚洲一区在线看</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>