i'm trying to get data from some table written in HTML, im using QWebFrameand QWebElementi have this table..

Qt Code:
  1. <table cellspacing="0" cellpadding="4" id="GridView1" style="color:#333333;border-collapse:collapse;">
  2. <tr style="color:White;background-color:#5D7B9D;font-weight:bold;">
  3. <th scope="col">Factura</th><th scope="col">Fecha de entrega</th><th scope="col">Codigo</th><th scope="col">Serial</th><th scope="col">Cliente</th><th scope="col">Fecha de facturacion</th>
  4. </tr><tr style="color:#333333;background-color:#F7F6F3;">
  5. <td>information 1</td>
  6. <td>information 2</td>
  7. <td>information 3</td>
  8. <td>information 4</td>
  9. <td>information 5</td>
  10. <td>information 6</td>
  11. </tr>
  12. </table>
To copy to clipboard, switch view to plain text mode 

i'm trying to store in variables each "information" between the <td>..</td> tags for that i'm using

Qt Code:
  1. QWebElement information1= frame->findFirstElement("#GridView1 td:nth-child(1)");
  2. QWebElement information2 = frame->findFirstElement("#GridView1 td:nth-child(2)");
  3. QWebElement infomation3 = frame->findFirstElement("#GridView1 td:nth-child(3)");
To copy to clipboard, switch view to plain text mode 

don't know if its correct to search #GridView1 as the table id and add td:nth-child(n) to find its n child type td......or if there is another way to extract data from the table