I am trying to populate data into a QTableWidget , but i am facing difficulty in the logic for populating corresponding rows and columns of the table.

I have the input coming from xml document and I want the rows to increase dynamically according to the data present in the xml file.





<Message>'120' <break> Statement</break> w_addr &lt;= (others =&gt; '0');</Message>

<Message>'136' <break> Statement </break>r_addr &lt;= (others =&gt; '0');</Message>



I want the data to be captured from the <Message> tag and populated on QTableWidget as shown in the image.The rows should increase dynamically according to number of <Message> elements
qtforum.PNG