锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久综合久久88,欧美日韩国产综合视频在线,国产精品亚洲一区二区三区在线http://m.shnenglu.com/boymaster/category/20154.html婕備寒鐨勭▼搴忥紝寮蹇冨湴宸ヤ綔zh-cnSat, 24 Nov 2012 02:47:27 GMTSat, 24 Nov 2012 02:47:27 GMT60QtWebkit綾誨簱涓嶯ative浠g爜鐨勬販鍚堝紑鍙?/title><link>http://m.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://m.shnenglu.com/boymaster/articles/194963.html</guid><wfw:comment>http://m.shnenglu.com/boymaster/comments/194963.html</wfw:comment><comments>http://m.shnenglu.com/boymaster/articles/194963.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/boymaster/comments/commentRss/194963.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/boymaster/services/trackbacks/194963.html</trackback:ping><description><![CDATA[<div>鍦≦T閲岄潰錛屾垜浠彲浠ュ緢鏂逛究鍦拌皟鐢≦tWebKit綾誨簱錛屾潵瀹炵幇涓涓祻瑙堝櫒鐨勫紑鍙?br />鍩轟簬Html鐨勭晫闈㈠湪寮鍙戞晥鐜囷紝鍙Щ妞嶆т笂閮藉崄鍒嗘湁浼樺娍錛屾墍浠ヤ篃琚緢澶氱▼搴忛噰鐢紝鍙槸鎴戜滑騫蟲椂娌℃敞鎰忓埌鑰屽凡<br /><br />涓嬮潰鍏堣涓涓嬶紝濡備綍鍒涘緩涓涓畝鏄撶殑嫻忚鍣?br />閫氳繃VS2008+QTSDK錛屽垱寤轟竴涓猶t4 GUI宸ョ▼:<br /><img border="0" alt="" src="http://m.shnenglu.com/images/cppblog_com/boymaster/01.jpg" /><br />璁頒綇錛屼竴瀹氳閫変笂QtWebKit鍜孮Network(榪欎釜鍚庨潰瑕佺敤鍒?...<br /><br />鍐欏涓嬩竴孌典唬鐮侊紝涓涓祻瑙堝櫒灝卞仛鎴愪簡:<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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" />    view.setUrl(QUrl(</span><span style="color: #000000">"</span><span style="color: #000000">http://m.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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span></div>QWebView鏈変袱縐嶆柟娉曞彲浠ョ敤鏉ヨ瀹氳鏄劇ず鐨勫唴瀹癸紝涓涓槸setUrl鏂規硶錛屼竴涓槸setContent鏂規硶銆?榪欎釜寰堢畝鍗曪紝璇曚竴涓嬪氨浼氾紝涓嶅璇翠簡<br /><br />榪涘叆姝i浜嗭紝鎺ヤ笅鏉ヤ粙緇嶄竴涓嬶紝濡備綍瀹炵幇js涓嶤++鐨勫弻鍚戣皟鐢?br />榪欓噷錛屼粎浠嬬粛寮鍙戜腑鐢ㄥ埌鐨勪竴縐嶈皟鐢ㄦ柟寮忥紝 鐢≦WebFrame鐨刟ddToJavaScriptWindowObject鏂規硶<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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span></div>榪欐牱錛屽綋鐐瑰嚮欏甸潰涓婄殑"Click Me"錛宻cript鑴氭湰鐢ㄤ細璋冪敤鍒癈++涓殑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://m.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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" alt="" /><br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">28</span><span style="color: #000000"><img align="top" src="http://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.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://m.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span></div><br />榪欐牱錛岄〉闈㈠姞杞藉悗錛孋++鐨凾imer姣忛殧1縐掑氨浼氳皟鐢ㄥ埌JS鐨刦()鍑芥暟<br /></div><img src ="http://m.shnenglu.com/boymaster/aggbug/194963.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/boymaster/" target="_blank">鍙岄奔搴х殑紼嬪簭鍛?/a> 2012-11-09 10:45 <a href="http://m.shnenglu.com/boymaster/articles/194963.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愯漿銆戝埄鐢≦T榪涜web涓庢湰鍦版販鍚堝簲鐢ㄥ紑鍙?/title><link>http://m.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://m.shnenglu.com/boymaster/articles/194954.html</guid><wfw:comment>http://m.shnenglu.com/boymaster/comments/194954.html</wfw:comment><comments>http://m.shnenglu.com/boymaster/articles/194954.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/boymaster/comments/commentRss/194954.html</wfw:commentRss><trackback:ping>http://m.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>.錛堥檺浜庢湰浜鴻嫳鏂囨按騫籌紝鍙瘧鍏跺ぇ姒傦級<br /><br /><br /><span style="font-family: Arial">Qt鎻愪緵浜嗘湰鍦?C++瀵硅薄涓嶫avaScript鐨勬棤緙濋泦鎴愶紝鏄繘琛屾湰鍦頒笌web娣峰悎搴旂敤寮鍙戠殑鐞嗘兂騫沖彴銆?br /><br /><br />(涓錛塓t Webkit 闆嗘垚<br />銆銆鍒╃敤Qt鐨刉ebkit 闆嗘垚涓嶲tNetwork妯″潡錛屼綘瀹屽叏鍙互榪涜鏈湴妗岄潰涓巜eb娣峰悎搴旂敤寮鍙戯紝浣犲彲浠ヨ嚜鐢卞湴娣峰悎JavaScript錛屾牱寮忚〃錛學eb鍐呭鍜孮t緇勪歡銆?Webkit鏄竴涓潪甯告垚鐔熺殑web嫻忚寮曟搸銆俀t涓泦鎴愪簡榪欎釜澶у悕榧庨紟鐨勫紩鎿庯紝閫氳繃錛眛Webkit錛屼綘鍙互鍦跡++ 涓墽琛孞avaScript錛屾垨鑰呭湪緗戦〉涓泦鎴愶跡++瀵硅薄錛屽茍涓旈氳繃JavaScript鍜岃繖浜涘璞¤繘琛屼氦浜掋?br />銆銆涓涓幇浠g殑錛即錛棘娓叉煋寮曟搸鍙槸娣峰悎寮鍙戠殑涓鍗婏紝鍙︿竴鍗婂氨鏄湰鍦板簲鐢ㄥ拰娓叉煋瀵硅薄鐨勪氦浜掋傦急錛寸殑Webkit 闆嗘垚鎻愪緵浜嗚繖縐嶈В鍐蟲柟妗堬細<br />銆銆錛?浣跨敤object鏍囩宓屽叆Qt Widgets緇勪歡銆傝繖鍙互璁╀嬌鐢跡++浠g爜鐨凲t緇勪歡鍖呭惈鍦ㄧ綉欏典腑錛屼綔涓虹綉欏電殑閮ㄥ垎澶栬銆?br />銆銆錛?鍦↗avaScript涓闂跡++瀵硅薄銆備綘鍙互鍦↗avaScript鐜涓彃鍏ワ跡++瀵硅薄錛岃緗戦〉鑴氭湰鐩存帴璁塊棶浣犵殑鏁版嵁緇撴瀯銆?br />銆銆錛?鍦≦t涓墽琛孞avaScript銆備綘鍙互鍦跡++璋冪敤緗戦〉鐜涓殑JavaScript鍑芥暟錛岃Е鍙戠綉欏典簨浠躲?br />銆銆錛?鍏變韓瀹㈡埛绔瓨鍌ㄣ傚湪JavaScript鍜岋跡++涓綘閮藉叿鏈夎闂暟鎹簱鐨勮兘鍔涳紝榪欐牱褰撲笅綰挎椂涔熻兘鍏變韓澶ч噺鏁版嵁銆?br /><br /><br />(浜岋級涓庡祵鍏ョ殑Qt瀵硅薄浜や簰<br />銆銆浣跨敤 QWebView 緇勪歡錛屾湁涓ょ鏂規硶鍙互鍦ㄧ綉欏典腑宓屽叆C++瀵硅薄銆備綘鍙互鍦ㄧ綉欏電殑JavaScript涓坊鍔燙++瀵硅薄錛屾垨鑰呬篃鍙互鍒涘緩涓涓彃浠訛紝鐒跺悗鍦ㄧ綉欏典腑浣跨敤object鏍囩宓屽叆銆?br />銆銆<br />銆銆絎簩縐嶆柟娉曟洿瀹規槗鍏ユ墜銆傚綋鍦ㄧ綉欏典腑鏀懼叆 Widget緇勪歡鏃訛紝瀹冪殑鎵鏈塸ublic slots灝卞儚鏅氬嚱鏁頒竴鏍瘋緗戦〉涓殑JavaScript鍑芥暟璁塊棶銆?br />    瑕佸湪緗戦〉涓坊鍔犱竴涓猈idget錛岄鍏堣鍛婅瘔浣犵殑QWebPage瀵硅薄,璇idget鍙敤,榪欎釜閫氳繃瀛愮被鍖朡WebPlugFactory瀹屾垚,浣犻渶瑕侀噸鏂板疄鐜頒袱涓柟娉曪細plugs鍜宑reate銆俻lugs鏂規硶閫氱煡緗戦〉璇idget鍙敤錛宑reate鏂規硶鏍規嵁璇鋒眰鍒涘緩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灝嗕細鏍規嵁application/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鏂規硶銆傝繖涓柟娉曞厑璁鎬綘鏍規嵁鍚嶅瓧鎶婁竴涓璞℃坊鍔犲埌JavaScipt涓婁笅鏂囦腑銆?/p> <div>webView->page()->mainFrame()->addToJavaScriptWindowObject( "eventSource", new eventSource( this ) );</div> <p><br />銆銆瑕佽繛鎺ュ垰娣誨姞瀵硅薄eventSource鐨勪俊鍙鳳紝瑕佸姞涓婁竴孌礘avaScript浠g爜錛屼嬌鐢╡valuateJavaScript鏂規硶瀹屾垚銆備笅闈㈢殑浠g爜灝嗘妸eventSource瀵硅薄鐨剆ignalName淇″彿榪炴帴鍒頒竴涓狫avaScript鍑芥暟destFunction銆?/p> <div><img alt="" align="top" src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" />webView->page()->mainFrame()->evaluateJavaScript( "eventSource.signalName.connect(destFunction);" );</div> <p><br /><br />銆銆濡傛灉浣犳妸涓涓璞℃坊鍔犲埌涓涓互鏍囧噯嫻忚鍣ㄦ煡鐪嬬殑JavaScript欏甸潰涓紝鏈変竴涓俊鍙烽渶瑕佺煡閬撱傛瘡涓嬈avaScript 鍐呭琚竻闄わ紝Frame閮戒細閲婃斁 javaScriptWindowObjectCleared 淇″彿銆備負浜嗕嬌浣犵殑Qt瀵硅薄涓鐩村彲鐢紝浣犻渶瑕佽繛鎺ヨ繖涓俊鍙鳳紝騫朵笖鍦ㄨ繖閲岃皟鐢?addToJavaScriptWindowObject鍑芥暟銆?/p> <p> </p> <p>錛堜簩錛変嬌鐢ㄥ鎴風瀛樺偍鍏變韓鏁版嵁</p> <p>       闅忕潃HTML5錛學EB鏍囧噯鏃ョ泭闈犺繎浜庢闈紝鍚屾牱錛屾闈篃寮濮嬮泦鎴怶EB銆傝繖鏂歸潰涓涓渶澶х殑鍙樺寲灝辨槸瀹㈡埛绔瓨鍌ㄣ傝繖鍦ㄥ鎴鋒満涓婄粰浜嗘瘡涓鏂癸紙姣斿姣忎竴涓〉闈級涓涓兘鍒╃敤SQL鐨勬暟鎹簱寮曟搸錛屽彲浠ョ紦瀛樻湰鍦版暟鎹紝鍑忓皯嫻侀噺錛屼嬌欏甸潰鑳借劚鏈轟嬌鐢ㄣ傝繕鍙互鐢ㄦ潵瀛樺偍澶ч噺鐨勭粨鏋勫寲鐨勶紝鍙悳绱㈢殑鏁版嵁銆?/p> <p>      瀹㈡埛绔瓨鍌ㄥ彲浠ュ湪JavaScript涓嬌鐢紝浠嶫avaScript浠g爜涓悳绱㈡暟鎹簱錛岀劧鍚庝粠鎼滅儲緇撴灉涓敓鎴愰〉闈€傝繖瑕佷嬌鐢?openDatabase鍜宼ransaction鍑芥暟銆?/p> <p>鍋囪鐜板湪鏈変釜鏁版嵁搴? 浠g爜濡備笅鎵紺猴細</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欏甸潰鍦ㄥ拰鏈湴閮ㄥ垎鍏變韓鏁版嵁鏃訛紝鍙互鐢ㄥ悓鏍風殑鏈哄埗鏉ヤ繚瀛樻暟鎹?br />     涓轟簡閬垮厤瀹夊叏闂錛屽鎴風鐨勬暟鎹簱鍙兘鐢卞叿鏈夋紜潈闄愮殑涓鏂瑰湪JavaScript涓闂傛湰鍦扮殑C++浠g爜涔熷彲浠ラ氳繃闈欐佺殑<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 鏂規硶錛屾垨鑰呴氳繃<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鏂規硶錛屽彲浠ヨ闂竴涓猀WebDatabaew鏂規硶鍒楄〃錛屾瘡涓涓獁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://m.shnenglu.com/Images/dot.gif" /><br />}<br /></span></div> <p><br />         鍦╓EB鍜屾湰鍦板簲鐢ㄨ繛鎺ヤ簨浠剁殑鑳藉姏錛屽啀鍔犱笂鍏變韓鏁版嵁鐨勬満鍒訛紝鏇存槗浜庢ā緋奧EB鍜屾闈箣闂寸殑鐣岄檺銆?/p> <p><br /><br />錛堜笁錛塛EB杞崲</p> <p>       寰堝閫氳繃WEB寰楀埌鐨勬暟鎹茍涓嶉傚悎鐩存帴鏄劇ず銆傛瘮濡傜綉緇滄柊闂? 鍦扮悊鏁版嵁錛屼互鍙婂叾瀹冪壒瀹氭暟鎹牸寮忕殑搴旂敤銆俀T鐨勭綉緇滄ā鍧楀彲浠ヤ互涓縐嶅緢綆鍗曠殑鏂瑰紡涓嬭澆榪欐牱鐨勬暟鎹紝鐒跺悗瑙f瀽鏁版嵁錛屾妸瀹冭漿鎹㈡垚鑳借鑷繁鐨勪唬鐮佸鐞嗙殑鍚堥傜殑鏍煎紡銆備篃鍙互閫氳繃QtXmlPatterns妯″潡澶勭悊錛屽綋杈撳嚭鏍煎紡鏄疿ML鎴栬呮兂鍦╔HMTL緗戦〉涓樉紺烘椂錛岃繖鏍鋒洿鍔犳柟渚褲?/p> <p>      鎴戜滑閫氳繃涓涓皬渚嬪瓙鏉ュぇ鑷翠簡瑙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 綾昏浣犲緢瀹規槗澶勭悊瀹㈡埛绔拰WEB鏈嶅姟鍣ㄤ箣闂寸殑浜や簰銆傚畠甯綘澶勭悊璇稿浠g悊錛屼繚瀛樿緗紝COOKIE浠ュ強SSL浼氳瘽榪欎簺緇嗚妭銆傛諱箣錛屽畠涓嶄絾璁╀綘鍦ㄨ薄涓婁紶涓嬭澆榪欎簺甯歌鎯呭喌鏇村姞瀹規槗錛岃繕鍙互甯綘澶勭悊鐧誨綍錛岃璇佽繖浜涘鏉備細璇濄?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 鐒跺悗璋冪敤瀹冪殑get鏂規硶銆傜粨鏋滈氳繃<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://m.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://m.shnenglu.com/boymaster/aggbug/194954.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/boymaster/" target="_blank">鍙岄奔搴х殑紼嬪簭鍛?/a> 2012-11-09 09:30 <a href="http://m.shnenglu.com/boymaster/articles/194954.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Qt涓婃埅鍙栦腑鑻辨枃娣峰悎瀛楃涓茬殑鎸囧畾闀垮害鍐呭http://m.shnenglu.com/boymaster/articles/194020.html鍙岄奔搴х殑紼嬪簭鍛?/dc:creator>鍙岄奔搴х殑紼嬪簭鍛?/author>Mon, 29 Oct 2012 07:39:00 GMThttp://m.shnenglu.com/boymaster/articles/194020.htmlhttp://m.shnenglu.com/boymaster/comments/194020.htmlhttp://m.shnenglu.com/boymaster/articles/194020.html#Feedback0http://m.shnenglu.com/boymaster/comments/commentRss/194020.htmlhttp://m.shnenglu.com/boymaster/services/trackbacks/194020.htmlQString str("涓崕浜烘皯鍏卞拰鍥?23涓崕浜烘皯鍏卞拰鍥?);
QString s = getString(str, 20);
瑕佹埅鍙栧悗錛岃緭鍑猴細
s = "涓崕浜烘皯鍏卞拰鍥?23涓?..";
鍗寵鎶婁腑鑻辨枃娣峰悎鐨勫瓧絎︿覆錛屽湪鎴彇闀垮害瑕佷竴鑷達紝鑰屼笖涓嶈兘鍑虹幇涓枃琚粠涓棿鎴柇鐨勬儏鍐?br />涓嬮潰鐩存帴璐翠唬鐮侊細
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("");
}


]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久精品一区二区三区不卡牛牛| 一本大道av伊人久久综合| 久久久999成人| 香蕉久久精品日日躁夜夜躁| 亚洲女同在线| 久久gogo国模裸体人体| 欧美专区在线| 欧美高清一区二区| 欧美日韩的一区二区| 国产精品a级| 国产午夜精品理论片a级大结局 | 久久免费黄色| 久久性天堂网| 亚洲激情国产| 亚洲精品美女久久久久| 在线亚洲国产精品网站| 亚洲欧美韩国| 欧美福利视频网站| 国产精品中文字幕在线观看| 国产欧美一区在线| 亚洲欧洲在线免费| 欧美亚洲视频在线看网址| 欧美不卡三区| 亚洲午夜电影网| 久久婷婷激情| 国产精品久久久久av| 在线观看欧美日韩| 亚洲视频你懂的| 久久天堂国产精品| 日韩一级精品| 免费亚洲电影| 国产日韩在线看片| 一本大道av伊人久久综合| 久久久久国产精品人| 日韩视频一区| 老色批av在线精品| 国产一区在线视频| 亚洲欧美视频一区二区三区| 最新国产拍偷乱拍精品| 久久久久国内| 国产欧美精品一区| 亚洲视频www| 亚洲丁香婷深爱综合| 欧美一区视频| 国产美女精品| 亚洲专区一二三| 亚洲精品在线免费| 麻豆av一区二区三区| 亚洲乱亚洲高清| 免播放器亚洲| 在线视频观看日韩| 久久久夜精品| 欧美一区二区三区视频免费| 国产精品视频久久一区| 亚洲视频综合在线| 亚洲人成亚洲人成在线观看图片 | 欧美日韩免费精品| 亚洲激情综合| 欧美激情综合| 久热精品在线| 在线国产精品播放| 久久人人爽国产| 久久电影一区| 一区二区亚洲精品| 奶水喷射视频一区| 免费不卡亚洲欧美| 亚洲欧洲日产国产综合网| 欧美高清视频在线| 免费短视频成人日韩| 亚洲国产日韩在线| 亚洲人成人一区二区三区| 欧美精品免费视频| 亚洲天堂av高清| 亚洲一区三区在线观看| 国产欧美日韩视频一区二区三区| 午夜精品久久久久久久白皮肤| 亚洲一区二区三区影院| 国产婷婷色一区二区三区四区| 久久免费视频在线| 免费成人av在线| 一区二区三区日韩欧美精品| 一区二区三区精品视频| 国产欧美精品日韩精品| 老色鬼久久亚洲一区二区| 美女尤物久久精品| 一本色道久久综合| 性久久久久久久久| 亚洲国产精彩中文乱码av在线播放| 亚洲黄色小视频| 国产精品福利久久久| 久久久久久国产精品mv| 欧美a一区二区| 亚洲欧美在线免费观看| 久久久国产91| 亚洲一级二级| 久久久999国产| 亚洲私人影院在线观看| 久久久午夜电影| 亚洲一区二区三区午夜| 久久久久看片| 亚洲视频香蕉人妖| 欧美在线观看你懂的| 99精品久久| 久久精品五月婷婷| 亚洲一区日本| 久久综合给合久久狠狠狠97色69| 一区二区日韩伦理片| 久久久av水蜜桃| 午夜在线成人av| 免费观看国产成人| 国产一区二区丝袜高跟鞋图片 | 久久亚洲美女| 欧美日韩在线视频一区| 另类国产ts人妖高潮视频| 欧美日韩在线免费视频| 欧美激情亚洲视频| 国内视频精品| 亚洲女同性videos| 亚洲综合精品| 欧美色区777第一页| 亚洲国产欧美日韩另类综合| 国产在线乱码一区二区三区| 亚洲一级在线| 亚洲午夜91| 欧美日韩精品一区二区在线播放 | 亚洲精品一区二区三区四区高清 | 99视频精品全国免费| 久久色中文字幕| 久久亚洲欧洲| 国产日韩精品视频一区二区三区| 日韩写真在线| 亚洲午夜精品17c| 欧美激情视频一区二区三区免费| 久久综合一区二区三区| 国产日韩精品视频一区| 亚洲尤物在线| 久久国产99| 国内精品久久久久国产盗摄免费观看完整版 | 亚洲人体1000| 欧美夫妇交换俱乐部在线观看| 欧美大学生性色视频| 亚洲国产日日夜夜| 欧美日韩大陆在线| 夜夜爽av福利精品导航| 亚洲欧美网站| 国产一级揄自揄精品视频| 性做久久久久久久免费看| 久久精品视频免费观看| 激情懂色av一区av二区av| 久久综合色婷婷| 亚洲精品免费电影| 亚洲欧美在线一区二区| 国产欧美一区在线| 久久免费精品日本久久中文字幕| 欧美69视频| 亚洲一区二区在线免费观看视频| 欧美性一区二区| 久久不射2019中文字幕| 男女精品网站| 亚洲视频www| 伊人精品在线| 欧美午夜片在线观看| 亚洲一区二区在线播放| 麻豆精品在线视频| 日韩图片一区| 国产免费成人| 欧美搞黄网站| 欧美影院成年免费版| 韩国av一区二区三区在线观看| 欧美xx视频| 亚洲欧美清纯在线制服| 欧美成人资源网| 亚洲一区二区三区色| 国产亚洲精品一区二555| 免费短视频成人日韩| 亚洲一级电影| 亚洲精品一区二区三区樱花| 欧美一区三区二区在线观看| 最新成人av在线| 国产精品色在线| 欧美精品成人| 久久久久国产精品一区三寸| 亚洲视频999| 亚洲人成在线播放| 麻豆精品91| 香蕉久久夜色| 一区二区三区视频观看| 亚洲国产精品一区二区三区| 国产精品亚洲综合天堂夜夜| 免费在线看一区| 久久激情视频久久| 亚洲免费网址| 日韩亚洲精品视频| 欧美大香线蕉线伊人久久国产精品| 午夜精品视频| 亚洲一区欧美| 亚洲图色在线| 在线一区二区日韩| 日韩一级视频免费观看在线| 亚洲第一区在线观看|