title: extract information from a website using Qt?
body: <p>I'd like extract the <code>information</code> in the <code>b</code> tag => <code>123456789</code></p>
  
  <p>this is the HTML source :</p>
  
  <pre><code>&lt;body&gt;
         &lt;div&gt;
            &lt;table&gt;
                 &lt;tbody&gt;
                       &lt;tr&gt;
                           &lt;td class="myclass"&gt;
                                 &lt;b&gt;123456789&lt;/b&gt;
                           &lt;/td&gt;
                       &lt;/tr&gt;
                &lt;/tbody&gt;
            &lt;/table&gt;
         &lt;/div&gt;
   &lt;/body&gt;
  </code></pre>
  
  <p>So, I tried this : </p>
  
  <pre><code>void My_Test_Dialog::on_pushButton_clicked()
  {
  
  
          QWebView *webview = new QWebView(parentWidget());
  
          webview-&gt;load(QUrl("http://www.esesese.com"));
  
          webview-&gt;show();
  
           // get HTML element information
          QWebElementCollection colls = webview-&gt;page()-&gt;mainFrame()-&gt;findAllElements("td.myclass b");
  
  
  
           foreach(QWebElement elemento, colls)
          {
                      ui-&gt;lineEdit_data-&gt;setText(elemento.toInnerXml());
          }
  }
  </code></pre>
  
  <p>I have a form with a Button(<code>call update</code>) and a <code>LineEdit</code>, so if I click on the <code>update</code> button, the <code>LineEdit</code> should set the text <code>123456789</code> automatically. But my code doesn't work. The Text of the <code>LineEdit</code> remains empty.</p>
  
  <p>I include this :</p>
  
  <pre><code>#include &lt;QtWebKit&gt;
  #include &lt;QtWebKitWidgets/QWebFrame&gt;
  #include &lt;QWebView&gt;
  </code></pre>
  
  <p>QT file.pro is :</p>
  
  <pre><code>QT += core gui
  QT += network
  QT += webkit
  QT += webkitwidgets
  </code></pre>