锘??xml version="1.0" encoding="utf-8" standalone="yes"?>粉嫩小泬无遮挡久久久久久,久久久噜噜噜久久熟女AA片,91亚洲国产成人久久精品网址 http://www.shnenglu.com/boymaster/category/20154.html婕備寒鐨勭▼搴忥紝寮蹇?jī)鍦板伐浣?/description>zh-cnSat, 24 Nov 2012 02:47:27 GMTSat, 24 Nov 2012 02:47:27 GMT60QtWebkit綾誨簱涓嶯ative浠g爜鐨勬販鍚堝紑鍙?/title><link>http://www.shnenglu.com/boymaster/articles/194963.html</link><dc:creator>鍙岄奔搴х殑紼嬪簭鍛?/dc:creator><author>鍙岄奔搴х殑紼嬪簭鍛?/author><pubDate>Fri, 09 Nov 2012 02:45:00 GMT</pubDate><guid>http://www.shnenglu.com/boymaster/articles/194963.html</guid><wfw:comment>http://www.shnenglu.com/boymaster/comments/194963.html</wfw:comment><comments>http://www.shnenglu.com/boymaster/articles/194963.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/boymaster/comments/commentRss/194963.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/boymaster/services/trackbacks/194963.html</trackback:ping><description><![CDATA[<div>鍦≦T閲岄潰錛屾垜浠彲浠ュ緢鏂逛究鍦拌皟鐢≦tWebKit綾誨簱錛屾潵瀹炵幇涓涓祻瑙堝櫒鐨勫紑鍙?br />鍩轟簬Html鐨勭晫闈㈠湪寮鍙戞晥鐜囷紝鍙Щ妞嶆т笂閮藉崄鍒嗘湁浼樺娍錛屾墍浠ヤ篃琚緢澶氱▼搴忛噰鐢紝鍙槸鎴戜滑騫蟲(chóng)椂娌℃敞鎰忓埌鑰屽凡<br /><br />涓嬮潰鍏堣涓涓嬶紝濡備綍鍒涘緩涓涓畝鏄撶殑嫻忚鍣?br />閫氳繃VS2008+QTSDK錛屽垱寤轟竴涓猶t4 GUI宸ョ▼:<br /><img border="0" alt="" src="http://www.shnenglu.com/images/cppblog_com/boymaster/01.jpg" /><br />璁頒綇錛屼竴瀹氳閫変笂QtWebKit鍜孮Network(榪欎釜鍚庨潰瑕佺敤鍒?...<br /><br />鍐欏涓嬩竴孌典唬鐮侊紝涓涓祻瑙堝櫒灝卞仛鎴愪簡(jiǎn):<br /><strong>main.cpp</strong> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">#include </span><span style="color: #000000"><</span><span style="color: #000000">QtGui</span><span style="color: #000000">/</span><span style="color: #000000">QApplication</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 2</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include </span><span style="color: #000000"><</span><span style="color: #000000">QWebView</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include </span><span style="color: #000000"><</span><span style="color: #000000">QMainWindow</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></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"> 6</span><span style="color: #000000"><img id="Codehighlighter1_107_330_Open_Image" onclick="this.style.display='none'; Codehighlighter1_107_330_Open_Text.style.display='none'; Codehighlighter1_107_330_Closed_Image.style.display='inline'; Codehighlighter1_107_330_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_107_330_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_107_330_Closed_Text.style.display='none'; Codehighlighter1_107_330_Open_Image.style.display='inline'; Codehighlighter1_107_330_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_107_330_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_107_330_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QApplication a(argc, argv);<br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QMainWindow window;<br /></span><span style="color: #008080"> 9</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QWebView view(</span><span style="color: #000000">&</span><span style="color: #000000">window);<br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    view.setGeometry(</span><span style="color: #000000">0</span><span style="color: #000000">, </span><span style="color: #000000">0</span><span style="color: #000000">, </span><span style="color: #000000">600</span><span style="color: #000000">, </span><span style="color: #000000">400</span><span style="color: #000000">);<br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    view.setUrl(QUrl(</span><span style="color: #000000">"</span><span style="color: #000000">http://www.shnenglu.com/boymaster</span><span style="color: #000000">"</span><span style="color: #000000">));<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    window.show();<br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">return</span><span style="color: #000000"> a.exec();<br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: #000000"><br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span></div>QWebView鏈変袱縐嶆柟娉曞彲浠ョ敤鏉ヨ瀹氳鏄劇ず鐨勫唴瀹癸紝涓涓槸setUrl鏂規(guī)硶錛屼竴涓槸setContent鏂規(guī)硶銆?榪欎釜寰堢畝鍗曪紝璇曚竴涓嬪氨浼?xì)锛屼笉澶氳浜?jiǎn)<br /><br />榪涘叆姝i?shù)簡(jiǎn)锛屾帴涓嬫潵浠嬀l嶄竴涓嬶紝濡備綍瀹炵幇js涓嶤++鐨勫弻鍚戣皟鐢?br />榪欓噷錛屼粎浠嬬粛寮鍙戜腑鐢ㄥ埌鐨勪竴縐嶈皟鐢ㄦ柟寮忥紝 鐢≦WebFrame鐨刟ddToJavaScriptWindowObject鏂規(guī)硶<br />涓漢姣旇緝鎺ㄨ崘榪欑鏂瑰紡錛屾槗涓虹悊瑙~~<br /><br />1. JS濡備綍璋冪敤C++鍑芥暟錛岃瑙佷唬鐮亊~~<br /><strong>myobject.h</strong><br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">#ifndef MYOBJECT_H<br /></span><span style="color: #008080"> 2</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">#define</span><span style="color: #000000"> MYOBJECT_H</span><span style="color: #000000"><br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include</span><span style="color: #000000"><</span><span style="color: #000000">QObject</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include</span><span style="color: #000000"><</span><span style="color: #000000">QWebPage</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include</span><span style="color: #000000"><</span><span style="color: #000000">QWebFrame</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000"> !! ATTENTION !! : The object do NOT need to inherit from QWidget anymore.</span><span style="color: #008000"><br /></span><span style="color: #008080"> 9</span><span style="color: #008000"><img id="Codehighlighter1_205_450_Open_Image" onclick="this.style.display='none'; Codehighlighter1_205_450_Open_Text.style.display='none'; Codehighlighter1_205_450_Closed_Image.style.display='inline'; Codehighlighter1_205_450_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_205_450_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_205_450_Closed_Text.style.display='none'; Codehighlighter1_205_450_Open_Image.style.display='inline'; Codehighlighter1_205_450_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="color: #0000ff">class</span><span style="color: #000000"> MyObject :</span><span style="color: #0000ff">public</span><span style="color: #000000"> QObject </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_205_450_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_205_450_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    Q_OBJECT<br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">private</span><span style="color: #000000">:<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QWebPage </span><span style="color: #000000">*</span><span style="color: #000000">page;<br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">:<br /></span><span style="color: #008080">14</span><span style="color: #000000"><img id="Codehighlighter1_299_301_Open_Image" onclick="this.style.display='none'; Codehighlighter1_299_301_Open_Text.style.display='none'; Codehighlighter1_299_301_Closed_Image.style.display='inline'; Codehighlighter1_299_301_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_299_301_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_299_301_Closed_Text.style.display='none'; Codehighlighter1_299_301_Open_Image.style.display='inline'; Codehighlighter1_299_301_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif">    MyObject(QWebPage </span><span style="color: #000000">*</span><span style="color: #000000">page) : page(page) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_299_301_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_299_301_Open_Text"><span style="color: #000000">{ }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> slots:<br /></span><span style="color: #008080">16</span><span style="color: #000000"><img id="Codehighlighter1_344_448_Open_Image" onclick="this.style.display='none'; Codehighlighter1_344_448_Open_Text.style.display='none'; Codehighlighter1_344_448_Closed_Image.style.display='inline'; Codehighlighter1_344_448_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_344_448_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_344_448_Closed_Text.style.display='none'; Codehighlighter1_344_448_Open_Image.style.display='inline'; Codehighlighter1_344_448_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: #0000ff">void</span><span style="color: #000000"> func(QString arg) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_344_448_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_344_448_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">this</span><span style="color: #000000">-></span><span style="color: #000000">page</span><span style="color: #000000">-></span><span style="color: #000000">mainFrame()</span><span style="color: #000000">-></span><span style="color: #000000">evaluateJavaScript(</span><span style="color: #000000">"</span><span style="color: #000000">document.body.innerHTML += '</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> arg </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">);<br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">19</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: #000000">;<br /></span><span style="color: #008080">20</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">#endif</span><span style="color: #000000"> </span><span style="color: #008000">//</span><span style="color: #008000"> MYOBJECT_H</span><span style="color: #000000"><br /></span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span></div><strong><br />main.cpp<br /></strong> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">#include </span><span style="color: #000000"><</span><span style="color: #000000">QtGui</span><span style="color: #000000">/</span><span style="color: #000000">QApplication</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 2</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include </span><span style="color: #000000"><</span><span style="color: #000000">QMainWindow</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include </span><span style="color: #000000"><</span><span style="color: #000000">QWebView</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include </span><span style="color: #000000"><</span><span style="color: #000000">QWebPage</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include </span><span style="color: #000000"><</span><span style="color: #000000">QWebFrame</span><span style="color: #000000">></span><span style="color: #000000"><br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />#include </span><span style="color: #000000">"</span><span style="color: #000000">MyObject.h</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></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"><img id="Codehighlighter1_170_666_Open_Image" onclick="this.style.display='none'; Codehighlighter1_170_666_Open_Text.style.display='none'; Codehighlighter1_170_666_Closed_Image.style.display='inline'; Codehighlighter1_170_666_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_170_666_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_170_666_Closed_Text.style.display='none'; Codehighlighter1_170_666_Open_Image.style.display='inline'; Codehighlighter1_170_666_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_170_666_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_170_666_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QApplication a(argc, argv);<br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QMainWindow window;<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QWebView view(</span><span style="color: #000000">&</span><span style="color: #000000">window);<br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QWebPage page;<br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    view.setPage(</span><span style="color: #000000">&</span><span style="color: #000000">page);<br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    view.setGeometry(</span><span style="color: #000000">0</span><span style="color: #000000">, </span><span style="color: #000000">0</span><span style="color: #000000">, </span><span style="color: #000000">600</span><span style="color: #000000">, </span><span style="color: #000000">400</span><span style="color: #000000">);<br /></span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    MyObject obj(</span><span style="color: #000000">&</span><span style="color: #000000">page);<br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    page.mainFrame()</span><span style="color: #000000">-></span><span style="color: #000000">addToJavaScriptWindowObject(</span><span style="color: #000000">"</span><span style="color: #000000">qt</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">&</span><span style="color: #000000">obj);<br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QString content(</span><span style="color: #000000">"</span><span style="color: #000000"><script>function f() { qt.func('http://www.shnenglu.com/boymaster'); }</script></span><span style="color: #000000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">19</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    content </span><span style="color: #000000">+=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000"><a href='javascript:f()'>Click Me</a></span><span style="color: #000000">"</span><span style="color: #000000">;<br /></span><span style="color: #008080">20</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    view.setContent(content.toAscii());<br /></span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    window.show();<br /></span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">return</span><span style="color: #000000"> a.exec();<br /></span><span style="color: #008080">24</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: #000000"><br /></span><span style="color: #008080">25</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span></div>榪欐牱錛屽綋鐐瑰嚮欏甸潰涓婄殑"Click Me"錛宻cript鑴氭湰鐢ㄤ細(xì)璋冪敤鍒癈++涓殑func鍑芥暟~~~<br /><br />2.C++璋冪敤JS鑴氭湰<br /><strong>myobject.h</strong><br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img id="Codehighlighter1_31_517_Open_Image" onclick="this.style.display='none'; Codehighlighter1_31_517_Open_Text.style.display='none'; Codehighlighter1_31_517_Closed_Image.style.display='inline'; Codehighlighter1_31_517_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_31_517_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_31_517_Closed_Text.style.display='none'; Codehighlighter1_31_517_Open_Image.style.display='inline'; Codehighlighter1_31_517_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif"><span style="color: #0000ff">class</span><span style="color: #000000"> MyObject :</span><span style="color: #0000ff">public</span><span style="color: #000000"> QObject </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_31_517_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_31_517_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080"> 2</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    Q_OBJECT<br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">private</span><span style="color: #000000">:<br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QWebPage </span><span style="color: #000000">*</span><span style="color: #000000">page;<br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QTimer </span><span style="color: #000000">*</span><span style="color: #000000">timer;<br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">:<br /></span><span style="color: #008080"> 9</span><span style="color: #000000"><img id="Codehighlighter1_146_279_Open_Image" onclick="this.style.display='none'; Codehighlighter1_146_279_Open_Text.style.display='none'; Codehighlighter1_146_279_Closed_Image.style.display='inline'; Codehighlighter1_146_279_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_146_279_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_146_279_Closed_Text.style.display='none'; Codehighlighter1_146_279_Open_Image.style.display='inline'; Codehighlighter1_146_279_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif">    MyObject(QWebPage </span><span style="color: #000000">*</span><span style="color: #000000">page) : page(page) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_146_279_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_146_279_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />        timer </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> QTimer;<br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />        connect(timer, SIGNAL(timeout()), </span><span style="color: #0000ff">this</span><span style="color: #000000">, SLOT(slotTimerOut()));<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />        timer</span><span style="color: #000000">-></span><span style="color: #000000">start(</span><span style="color: #000000">1000</span><span style="color: #000000">);<br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />signals:<br /></span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">void</span><span style="color: #000000"> signalObjTimerOut();<br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #0000ff">private</span><span style="color: #000000"> slots:<br /></span><span style="color: #008080">19</span><span style="color: #000000"><img id="Codehighlighter1_358_448_Open_Image" onclick="this.style.display='none'; Codehighlighter1_358_448_Open_Text.style.display='none'; Codehighlighter1_358_448_Closed_Image.style.display='inline'; Codehighlighter1_358_448_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_358_448_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_358_448_Closed_Text.style.display='none'; Codehighlighter1_358_448_Open_Image.style.display='inline'; Codehighlighter1_358_448_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: #0000ff">void</span><span style="color: #000000"> connectSlots() </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_358_448_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_358_448_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">20</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />        page</span><span style="color: #000000">-></span><span style="color: #000000">mainFrame()</span><span style="color: #000000">-></span><span style="color: #000000">evaluateJavaScript(</span><span style="color: #000000">"</span><span style="color: #000000">DevObject.signalDevObjTimerOut.connect(f);</span><span style="color: #000000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">23</span><span style="color: #000000"><img id="Codehighlighter1_475_515_Open_Image" onclick="this.style.display='none'; Codehighlighter1_475_515_Open_Text.style.display='none'; Codehighlighter1_475_515_Closed_Image.style.display='inline'; Codehighlighter1_475_515_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_475_515_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_475_515_Closed_Text.style.display='none'; Codehighlighter1_475_515_Open_Image.style.display='inline'; Codehighlighter1_475_515_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: #0000ff">void</span><span style="color: #000000"> slotTimerOut() </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_475_515_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_475_515_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080">24</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />        emit signalObjTimerOut();<br /></span><span style="color: #008080">25</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /></span><span style="color: #008080">26</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: #000000">;<br /></span><span style="color: #008080">27</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">28</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">#endif</span><span style="color: #000000"> </span><span style="color: #008000">//</span><span style="color: #008000"> MYOBJECT_H</span></div><br /><strong>main.cpp</strong><br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><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"> 2</span><span style="color: #000000"><img id="Codehighlighter1_33_536_Open_Image" onclick="this.style.display='none'; Codehighlighter1_33_536_Open_Text.style.display='none'; Codehighlighter1_33_536_Closed_Image.style.display='inline'; Codehighlighter1_33_536_Closed_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_33_536_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_33_536_Closed_Text.style.display='none'; Codehighlighter1_33_536_Open_Image.style.display='inline'; Codehighlighter1_33_536_Open_Text.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_33_536_Closed_Text"><img src="http://www.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_33_536_Open_Text"><span style="color: #000000">{<br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QApplication a(argc, argv);<br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QMainWindow window;<br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QWebView view(</span><span style="color: #000000">&</span><span style="color: #000000">window);<br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QWebPage page;<br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    view.setPage(</span><span style="color: #000000">&</span><span style="color: #000000">page);<br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    view.setGeometry(</span><span style="color: #000000">0</span><span style="color: #000000">, </span><span style="color: #000000">0</span><span style="color: #000000">, </span><span style="color: #000000">600</span><span style="color: #000000">, </span><span style="color: #000000">400</span><span style="color: #000000">);<br /></span><span style="color: #008080"> 9</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    MyObject obj(</span><span style="color: #000000">&</span><span style="color: #000000">page);<br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QObject::connect(</span><span style="color: #000000">&</span><span style="color: #000000">view, SIGNAL(loadFinished(</span><span style="color: #0000ff">bool</span><span style="color: #000000">)), </span><span style="color: #000000">&</span><span style="color: #000000">obj, SLOT(connectSlots()));<br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    page.mainFrame()</span><span style="color: #000000">-></span><span style="color: #000000">addToJavaScriptWindowObject(</span><span style="color: #000000">"</span><span style="color: #000000">qt</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">&</span><span style="color: #000000">obj);<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    QString content(</span><span style="color: #000000">"</span><span style="color: #000000"><SCRIPT>function f() { document.body.innerHTML += 'http://www.shnenglu.com/boymaster'; }</SCRIPT></span><span style="color: #000000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    view.setContent(content.toAscii());<br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    window.show();<br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: #0000ff">return</span><span style="color: #000000"> a.exec();<br /></span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span><span style="color: #000000"><br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span></div><br />榪欐牱錛岄〉闈㈠姞杞藉悗錛孋++鐨凾imer姣忛殧1縐掑氨浼?xì)璋冪敤鍒癑S鐨刦()鍑芥暟<br /></div><img src ="http://www.shnenglu.com/boymaster/aggbug/194963.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/boymaster/" target="_blank">鍙岄奔搴х殑紼嬪簭鍛?/a> 2012-11-09 10:45 <a href="http://www.shnenglu.com/boymaster/articles/194963.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愯漿銆戝埄鐢≦T榪涜web涓庢湰鍦版販鍚堝簲鐢ㄥ紑鍙?/title><link>http://www.shnenglu.com/boymaster/articles/194954.html</link><dc:creator>鍙岄奔搴х殑紼嬪簭鍛?/dc:creator><author>鍙岄奔搴х殑紼嬪簭鍛?/author><pubDate>Fri, 09 Nov 2012 01:30:00 GMT</pubDate><guid>http://www.shnenglu.com/boymaster/articles/194954.html</guid><wfw:comment>http://www.shnenglu.com/boymaster/comments/194954.html</wfw:comment><comments>http://www.shnenglu.com/boymaster/articles/194954.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/boymaster/comments/commentRss/194954.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/boymaster/services/trackbacks/194954.html</trackback:ping><description><![CDATA[<p>Qt Features for Hybrid Web/Native Application Development銆?br />鍘熸枃鍙傝 <a >http://www.qtsoftware.com/forms/whitepapers/reg-whitepaper-hybrid</a>.錛堥檺浜庢湰浜鴻嫳鏂囨按騫籌紝鍙瘧鍏跺ぇ姒傦級(jí)<br /><br /><br /><span style="font-family: Arial">Qt鎻愪緵浜?jiǎn)鏈?C++瀵硅薄涓嶫avaScript鐨勬棤緙濋泦鎴愶紝鏄繘琛屾湰鍦頒笌web娣峰悎搴旂敤寮鍙戠殑鐞嗘兂騫沖彴銆?br /><br /><br />(涓錛塓t Webkit 闆嗘垚<br />銆銆鍒╃敤Qt鐨刉ebkit 闆嗘垚涓嶲tNetwork妯″潡錛屼綘瀹屽叏鍙互榪涜鏈湴妗岄潰涓巜eb娣峰悎搴旂敤寮鍙戯紝浣犲彲浠ヨ嚜鐢卞湴娣峰悎JavaScript錛屾牱寮忚〃錛學(xué)eb鍐呭鍜孮t緇勪歡銆?Webkit鏄竴涓潪甯告垚鐔熺殑web嫻忚寮曟搸銆俀t涓泦鎴愪簡(jiǎn)榪欎釜澶у悕榧庨紟鐨勫紩鎿庯紝閫氳繃錛眛Webkit錛屼綘鍙互鍦跡++ 涓墽琛孞avaScript錛屾垨鑰呭湪緗戦〉涓泦鎴愶跡++瀵硅薄錛屽茍涓旈氳繃JavaScript鍜岃繖浜涘璞¤繘琛屼氦浜掋?br />銆銆涓涓幇浠g殑錛即錛棘娓叉煋寮曟搸鍙槸娣峰悎寮鍙戠殑涓鍗婏紝鍙︿竴鍗婂氨鏄湰鍦板簲鐢ㄥ拰娓叉煋瀵硅薄鐨勪氦浜掋傦急錛寸殑Webkit 闆嗘垚鎻愪緵浜?jiǎn)杩櫩U嶈В鍐蟲(chóng)柟妗堬細(xì)<br />銆銆錛?浣跨敤object鏍囩宓屽叆Qt Widgets緇勪歡銆傝繖鍙互璁╀嬌鐢跡++浠g爜鐨凲t緇勪歡鍖呭惈鍦ㄧ綉欏典腑錛屼綔涓虹綉欏電殑閮ㄥ垎澶栬銆?br />銆銆錛?鍦↗avaScript涓闂跡++瀵硅薄銆備綘鍙互鍦↗avaScript鐜涓彃鍏ワ跡++瀵硅薄錛岃緗戦〉鑴氭湰鐩存帴璁塊棶浣犵殑鏁版嵁緇撴瀯銆?br />銆銆錛?鍦≦t涓墽琛孞avaScript銆備綘鍙互鍦跡++璋冪敤緗戦〉鐜涓殑JavaScript鍑芥暟錛岃Е鍙戠綉欏典簨浠躲?br />銆銆錛?鍏變韓瀹㈡埛绔瓨鍌ㄣ傚湪JavaScript鍜岋跡++涓綘閮藉叿鏈夎闂暟鎹簱鐨勮兘鍔涳紝榪欐牱褰撲笅綰挎椂涔熻兘鍏變韓澶ч噺鏁版嵁銆?br /><br /><br />(浜岋級(jí)涓庡祵鍏ョ殑Qt瀵硅薄浜や簰<br />銆銆浣跨敤 QWebView 緇勪歡錛屾湁涓ょ鏂規(guī)硶鍙互鍦ㄧ綉欏典腑宓屽叆C++瀵硅薄銆備綘鍙互鍦ㄧ綉欏電殑JavaScript涓坊鍔燙++瀵硅薄錛屾垨鑰呬篃鍙互鍒涘緩涓涓彃浠訛紝鐒跺悗鍦ㄧ綉欏典腑浣跨敤object鏍囩宓屽叆銆?br />銆銆<br />銆銆絎簩縐嶆柟娉曟洿瀹規(guī)槗鍏ユ墜銆傚綋鍦ㄧ綉欏典腑鏀懼叆 Widget緇勪歡鏃訛紝瀹冪殑鎵鏈塸ublic slots灝卞儚鏅氬嚱鏁頒竴鏍瘋緗戦〉涓殑JavaScript鍑芥暟璁塊棶銆?br />    瑕佸湪緗戦〉涓坊鍔犱竴涓猈idget錛岄鍏堣鍛婅瘔浣犵殑QWebPage瀵硅薄,璇idget鍙敤,榪欎釜閫氳繃瀛愮被鍖朡WebPlugFactory瀹屾垚,浣犻渶瑕侀噸鏂板疄鐜頒袱涓柟娉曪細(xì)plugs鍜宑reate銆俻lugs鏂規(guī)硶閫氱煡緗戦〉璇idget鍙敤錛宑reate鏂規(guī)硶鏍規(guī)嵁璇鋒眰鍒涘緩widget銆?br />銆銆鍦℉TML緗戦〉涓紝widgets浣跨敤object鏍囩鍒涘緩銆傛瘮濡傦紝涓嬮潰榪欎釜鏍囩璇曞浘鍒涘緩涓涓?application/x-qt-colorlabel銆緇勪歡銆?/span></p> <div> <p><object type="application/x-qt-colorlabel" width="50px" height="20px" id="label" /></p></div> <p><br />銆銆瑕佸埄鐢ㄨ繖縐嶅垱寤猴紝蹇呴』瑕佸厑璁鎬嬌鐢ㄦ彃浠跺茍涓旇鍛婅瘔QWebpage鎻掍歡鐨勫伐鍘傜被銆傚湪涓嬮潰鐨勪唬鐮佷腑錛孋olorLabelFactory灝嗕細(xì)鏍規(guī)嵁a(chǎn)pplication/x-qt-colorlabel鐨勮姹傚垱寤虹浉搴斿疄渚嬨?/p> <div>QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true); <br />webView->page()->setPluginFactory(new銆ColorLabelFactory(this));<br /></div> <p><br />銆銆ColorLabel鏈変竴涓叕寮鐨剆lot: chagneColor(),榪欎釜瀵逛簬緗戦〉涓殑JavaScript鑷姩鍙敤銆傚湪緗戦〉涓彃鍏ヤ竴涓寚鍚戣鍏冪礌鐨勯摼鎺ワ紝鍙互浠ヤ竴縐嶇畝鍗曠殑鏂瑰紡嬋媧籆++鍑芥暟銆?/p> <div><a href='javascript:document.getElementById("label").changeColor();'>Change color!</a> </div> <p>銆<br />銆<br />銆銆瑕佸弽鏂瑰悜鎺ㄨ繘浜嬩歡錛屽繀欏昏浣夸綘鐨勫璞″湪JavaScript鏂囨。涓婁笅鏂囦腑鍙敤銆傝瀵筈WebPage鐨勬瘡涓涓猀WebFrame錛岃皟鐢╝ddToJavaScriptWindowObject鏂規(guī)硶銆傝繖涓柟娉曞厑璁鎬綘鏍規(guī)嵁鍚嶅瓧鎶婁竴涓璞℃坊鍔犲埌JavaScipt涓婁笅鏂囦腑銆?/p> <div>webView->page()->mainFrame()->addToJavaScriptWindowObject( "eventSource", new eventSource( this ) );</div> <p><br />銆銆瑕佽繛鎺ュ垰娣誨姞瀵硅薄eventSource鐨勪俊鍙鳳紝瑕佸姞涓婁竴孌礘avaScript浠g爜錛屼嬌鐢╡valuateJavaScript鏂規(guī)硶瀹屾垚銆備笅闈㈢殑浠g爜灝嗘妸eventSource瀵硅薄鐨剆ignalName淇″彿榪炴帴鍒頒竴涓狫avaScript鍑芥暟destFunction銆?/p> <div><img alt="" align="top" src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" />webView->page()->mainFrame()->evaluateJavaScript( "eventSource.signalName.connect(destFunction);" );</div> <p><br /><br />銆銆濡傛灉浣犳妸涓涓璞℃坊鍔犲埌涓涓互鏍囧噯嫻忚鍣ㄦ煡鐪嬬殑JavaScript欏甸潰涓紝鏈変竴涓俊鍙烽渶瑕佺煡閬撱傛瘡涓嬈avaScript 鍐呭琚竻闄わ紝Frame閮戒細(xì)閲婃斁 javaScriptWindowObjectCleared 淇″彿銆備負(fù)浜?jiǎn)鋴射綘鐨凲t瀵硅薄涓鐩村彲鐢紝浣犻渶瑕佽繛鎺ヨ繖涓俊鍙鳳紝騫朵笖鍦ㄨ繖閲岃皟鐢?addToJavaScriptWindowObject鍑芥暟銆?/p> <p> </p> <p>錛堜簩錛変嬌鐢ㄥ鎴風(fēng)瀛樺偍鍏變韓鏁版嵁</p> <p>       闅忕潃HTML5錛學(xué)EB鏍囧噯鏃ョ泭闈犺繎浜庢闈紝鍚屾牱錛屾闈篃寮濮嬮泦鎴怶EB銆傝繖鏂歸潰涓涓渶澶х殑鍙樺寲灝辨槸瀹㈡埛绔瓨鍌ㄣ傝繖鍦ㄥ鎴鋒満涓婄粰浜?jiǎn)姣忎竴鏂癸紙姣斿姣忎竴涓〉闈級(jí)涓涓兘鍒╃敤SQL鐨勬暟鎹簱寮曟搸錛屽彲浠ョ紦瀛樻湰鍦版暟鎹紝鍑忓皯嫻侀噺錛屼嬌欏甸潰鑳借劚鏈轟嬌鐢ㄣ傝繕鍙互鐢ㄦ潵瀛樺偍澶ч噺鐨勭粨鏋勫寲鐨勶紝鍙悳绱㈢殑鏁版嵁銆?/p> <p>      瀹㈡埛绔瓨鍌ㄥ彲浠ュ湪JavaScript涓嬌鐢紝浠嶫avaScript浠g爜涓悳绱㈡暟鎹簱錛岀劧鍚庝粠鎼滅儲(chǔ)緇撴灉涓敓鎴愰〉闈€傝繖瑕佷嬌鐢?openDatabase鍜宼ransaction鍑芥暟銆?/p> <p>鍋囪鐜板湪鏈変釜鏁版嵁搴? 浠g爜濡備笅鎵紺猴細(xì)</p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><span style="color: #000000">db </span><span style="color: #000000">=</span><span style="color: #000000"> openDatabase(</span><span style="color: #000000">"</span><span style="color: #000000">TestDb </span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">"</span><span style="color: #000000">1.0</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">"</span><span style="color: #000000">Client side storage test</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">200000</span><span style="color: #000000">);<br />db.transaction(</span><span style="color: #0000ff">function</span><span style="color: #000000">(tx) {<br />      tx.executeSql(</span><span style="color: #000000">"</span><span style="color: #000000">SELECT id, text FROM Texts</span><span style="color: #000000">"</span><span style="color: #000000">, [], </span><span style="color: #0000ff">function</span><span style="color: #000000">(tx, result) {<br /></span><span style="color: #0000ff">          for</span><span style="color: #000000"> (</span><span style="color: #0000ff">var</span><span style="color: #000000"> i </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">; i </span><span style="color: #000000"><</span><span style="color: #000000"> result.rows.length; </span><span style="color: #000000">++</span><span style="color: #000000">i) {<br /></span><span style="color: #0000ff">              var</span><span style="color: #000000"> row </span><span style="color: #000000">=</span><span style="color: #000000"> result.rows.item(i);<br />               processText( row['id'], row['text'] );<br />         }<br />    },  </span><span style="color: #0000ff">  function</span><span style="color: #000000">(tx, error) {<br />         alert('Failed to retrieve texts from the database </span><span style="color: #000000">-</span><span style="color: #000000"> ' </span><span style="color: #000000">+</span><span style="color: #000000"> error.message);<br /></span><span style="color: #0000ff">         return</span><span style="color: #000000">;<br />    });<br />});<br /></span></div> <p>     浣跨敤QtWebkit錛屼綘鍙互浣跨敤QtSql妯″潡璁塊棶鍚屼竴涓暟鎹簱銆傝繖鍦ㄦ販鍚堝紑鍙戜腑鏄竴涓潪甯告湁鐢ㄧ殑鐗瑰緛銆傛瘮濡傦紝浣犵殑搴旂敤涓殑web欏甸潰鍦ㄥ拰鏈湴閮ㄥ垎鍏變韓鏁版嵁鏃訛紝鍙互鐢ㄥ悓鏍風(fēng)殑鏈哄埗鏉ヤ繚瀛樻暟鎹?br />     涓轟簡(jiǎn)閬垮厤瀹夊叏闂錛屽鎴風(fēng)鐨勬暟鎹簱鍙兘鐢卞叿鏈夋紜潈闄愮殑涓鏂瑰湪JavaScript涓闂傛湰鍦扮殑C++浠g爜涔熷彲浠ラ氳繃闈?rùn)鎬佺殑<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: 16px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; font-size-adjust: none; font-stretch: normal" class="Apple-style-span"><span style="font-family: -webkit-monospace; font-size: 13px" class="Apple-style-span">QWebSecurityOrigin::allOrigins 鏂規(guī)硶錛屾垨鑰呴氳繃<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: 16px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; font-size-adjust: none; font-stretch: normal" class="Apple-style-span"><span style="font-family: -webkit-monospace; font-size: 13px" class="Apple-style-span">QWebFrame::securityOrigin <span style="font-size: small"><font size="2">鏉ヨ闂墍鏈夊畨鍏ㄥ璞?/font></span></span></span>銆?br />   </span></span><br class="Apple-interchange-newline" />       閫氳繃databases鏂規(guī)硶錛屽彲浠ヨ闂竴涓猀WebDatabaew鏂規(guī)硶鍒楄〃錛屾瘡涓涓獁eb鏁版嵁搴撳璞℃湁涓涓猣ilename灞炴э紝鍙互鐢ㄦ潵鍦ㄦ湰鍦頒唬鐮佷腑璁塊棶鏁版嵁搴撱?/p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><span style="color: #000000">QWebDatabase webdb </span><span style="color: #000000">=</span><span style="color: #000000"> mySecurityOrigin.databases()[index];<br />QSqlDatabase sqldb </span><span style="color: #000000">=</span><span style="color: #000000"> QSqlDatabase::addDatabase(</span><span style="color: #000000">"</span><span style="color: #000000">QSQLITE</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">"</span><span style="color: #000000">webconnection</span><span style="color: #000000">"</span><span style="color: #000000">);<br />sqldb.setDatabaseName(webdb.fileName());<br /></span><span style="color: #0000ff">if</span><span style="color: #000000"> (sqldb.open()) {<br />    QStringList tables </span><span style="color: #000000">=</span><span style="color: #000000"> sqldb.tables();<br />   <img alt="" src="http://www.shnenglu.com/Images/dot.gif" /><br />}<br /></span></div> <p><br />         鍦╓EB鍜屾湰鍦板簲鐢ㄨ繛鎺ヤ簨浠剁殑鑳藉姏錛屽啀鍔犱笂鍏變韓鏁版嵁鐨勬満鍒訛紝鏇存槗浜庢ā緋奧EB鍜屾闈箣闂寸殑鐣岄檺銆?/p> <p><br /><br />錛堜笁錛塛EB杞崲</p> <p>       寰堝閫氳繃WEB寰楀埌鐨勬暟鎹茍涓嶉傚悎鐩存帴鏄劇ず銆傛瘮濡傜綉緇滄柊闂? 鍦扮悊鏁版嵁錛屼互鍙?qiáng)鍏跺畠鐗瑰畾鏁版嵁鏍煎紡鐨勫簲鐢ㄣ俀T鐨勭綉緇滄ā鍧楀彲浠ヤ互涓縐嶅緢綆鍗曠殑鏂瑰紡涓嬭澆榪欐牱鐨勬暟鎹紝鐒跺悗瑙f瀽鏁版嵁錛屾妸瀹冭漿鎹㈡垚鑳借鑷繁鐨勪唬鐮佸鐞嗙殑鍚堥傜殑鏍煎紡銆備篃鍙互閫氳繃QtXmlPatterns妯″潡澶勭悊錛屽綋杈撳嚭鏍煎紡鏄疿ML鎴栬呮兂鍦╔HMTL緗戦〉涓樉紺烘椂錛岃繖鏍鋒洿鍔犳柟渚褲?/p> <p>      鎴戜滑閫氳繃涓涓皬渚嬪瓙鏉ュぇ鑷翠簡(jiǎn)瑙d竴涓嬭繖涓湁鎰忔濈殑閮ㄥ垎銆傛垜浠笅杞戒竴涓柊闂繪簮錛岀敤XSLT鎶婂畠浠嶺ML杞崲鎴怷HTML錛岀劧鍚庨氳繃QWebPage鎶婂畠鏄劇ず鍑烘潵銆傦紙鍥劇暐錛?br />      <span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: 16px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; font-size-adjust: none; font-stretch: normal" class="Apple-style-span"><span style="font-family: -webkit-monospace; font-size: 13px" class="Apple-style-span">QNetworkAccessManager 綾昏浣犲緢瀹規(guī)槗澶勭悊瀹㈡埛绔拰W(xué)EB鏈嶅姟鍣ㄤ箣闂寸殑浜や簰銆傚畠甯綘澶勭悊璇稿浠g悊錛屼繚瀛樿緗紝COOKIE浠ュ強(qiáng)SSL浼?xì)璇潣q欎簺緇嗚妭銆傛諱箣錛屽畠涓嶄絾璁╀綘鍦ㄨ薄涓婁紶涓嬭澆榪欎簺甯歌鎯呭喌鏇村姞瀹規(guī)槗錛岃繕鍙互甯綘澶勭悊鐧誨綍錛岃璇佽繖浜涘鏉備細(xì)璇濄?br />    涓轟簡(jiǎn)涓嬭澆鎴戜滑渚嬪瓙涓殑鏂伴椈婧愶紝鎴戜滑鎵鏈夎鍋氱殑灝辨槸鍒涘緩涓涓?span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: 16px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; font-size-adjust: none; font-stretch: normal" class="Apple-style-span"><span style="font-family: -webkit-monospace; font-size: 13px" class="Apple-style-span">QNetworkAccessManager 鐒跺悗璋冪敤瀹冪殑get鏂規(guī)硶銆傜粨鏋滈氳繃<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: 16px Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; font-size-adjust: none; font-stretch: normal" class="Apple-style-span"><span style="font-family: -webkit-monospace; font-size: 13px" class="Apple-style-span"> finished(QNetworkReply*) </span></span>淇″彿榪斿洖銆?br /></span></span></span></span></p> <p><span style="color: #000000">{<br /><img alt="" src="http://www.shnenglu.com/Images/dot.gif" /><br />QNetworkAccessManager </span><span style="color: #000000">*</span><span style="color: #000000">manager </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> QNetworkAccessManager( </span><span style="color: #0000ff">this</span><span style="color: #000000"> );<br />connect( manager, SIGNAL(finished(QNetworkReply</span><span style="color: #000000">*</span><span style="color: #000000">)), </span><span style="color: #0000ff">this</span><span style="color: #000000">, SLOT(handleReply(QNetworkReply</span><span style="color: #000000">*</span><span style="color: #000000">)) );<br />connect( manager, SIGNAL(finished(QNetworkReply</span><span style="color: #000000">*</span><span style="color: #000000">)), m_progressBar, SLOT(hide()) );<br />QNetworkReply </span><span style="color: #000000">*</span><span style="color: #000000">reply </span><span style="color: #000000">=</span><span style="color: #000000"> manager</span><span style="color: #000000">-></span><span style="color: #0000ff">get</span><span style="color: #000000">( QNetworkRequest( QUrl( feedUrl ) ) );<br />connect( reply, SIGNAL(downloadProgress(qint64, qint64)), </span><span style="color: #0000ff">this</span><span style="color: #000000">, SLOT(updateProgress(qint64,qint64)) );<br />}</span></p><img src ="http://www.shnenglu.com/boymaster/aggbug/194954.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/boymaster/" target="_blank">鍙岄奔搴х殑紼嬪簭鍛?/a> 2012-11-09 09:30 <a href="http://www.shnenglu.com/boymaster/articles/194954.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Qt涓婃埅鍙栦腑鑻辨枃娣峰悎瀛楃涓茬殑鎸囧畾闀垮害鍐呭http://www.shnenglu.com/boymaster/articles/194020.html鍙岄奔搴х殑紼嬪簭鍛?/dc:creator>鍙岄奔搴х殑紼嬪簭鍛?/author>Mon, 29 Oct 2012 07:39:00 GMThttp://www.shnenglu.com/boymaster/articles/194020.htmlhttp://www.shnenglu.com/boymaster/comments/194020.htmlhttp://www.shnenglu.com/boymaster/articles/194020.html#Feedback0http://www.shnenglu.com/boymaster/comments/commentRss/194020.htmlhttp://www.shnenglu.com/boymaster/services/trackbacks/194020.htmlQString str("涓崕浜烘皯鍏卞拰鍥?23涓崕浜烘皯鍏卞拰鍥?);
QString s = getString(str, 20);
瑕佹埅鍙栧悗錛岃緭鍑猴細(xì)
s = "涓崕浜烘皯鍏卞拰鍥?23涓?..";
鍗寵鎶婁腑鑻辨枃娣峰悎鐨勫瓧絎︿覆錛屽湪鎴彇闀垮害瑕佷竴鑷達(dá)紝鑰屼笖涓嶈兘鍑虹幇涓枃琚粠涓棿鎴柇鐨勬儏鍐?br />涓嬮潰鐩存帴璐翠唬鐮侊細(xì)
static QString getString(QString s, int l)
{    
    QString temp 
= s;
    QRegExp rx(
"[\u4e00-\u9fa5]");
    
if (temp.replace(rx, "zz").length() <= l) {
        
return s;
    }


    
for (int i=s.length(); i>=0; i--{
        temp 
= s.mid(0,i);
        
if (temp.replace(rx, "zz").length() <= l) {
            
return s.mid(0,i) + "";
        }
    
    }

    
return QString("");
}


]]>
久久精品无码一区二区WWW| 久久大香香蕉国产| 精品国产91久久久久久久| 国产成人无码精品久久久性色 | 久久夜色精品国产噜噜麻豆| 久久精品无码专区免费 | 伊人久久大香线蕉成人| 久久一区二区免费播放| 欧美日韩成人精品久久久免费看| 99热成人精品免费久久| 久久久久久国产精品免费免费 | 久久婷婷色综合一区二区| 国产欧美久久久精品影院| 99久久做夜夜爱天天做精品| 亚洲愉拍99热成人精品热久久| 久久国产欧美日韩精品| 国产精品禁18久久久夂久| 中文字幕亚洲综合久久2| 欧美激情精品久久久久久| 亚洲精品视频久久久| 亚洲va久久久噜噜噜久久| 国内精品人妻无码久久久影院| 国产精品久久影院| 久久综合色区| 久久久精品2019免费观看| 91精品久久久久久无码| 午夜精品久久久内射近拍高清| 色婷婷综合久久久久中文| 天天爽天天爽天天片a久久网| 久久这里有精品视频| 久久综合国产乱子伦精品免费| 成人亚洲欧美久久久久| 欧美日韩精品久久久久| 久久综合中文字幕| 久久精品aⅴ无码中文字字幕不卡| 久久精品国产亚洲AV香蕉| 日日狠狠久久偷偷色综合0| 777米奇久久最新地址| 亚洲精品综合久久| 99久久综合国产精品二区| 久久综合给久久狠狠97色|