title: How do I get text from an item in a qtablewidget?
body: <p>I want to highlight all of the cells in my table that have the same value in the first column, but have a different value in any other cell.  So, for example, if I have two records in my table:</p>
  
  <pre><code>test, 25, 15, 45
  test, 25, 5, 45    
  </code></pre>
  
  <p>I would want to highlight the values 15 and 5.  </p>
  
  <p>I have tried the following code, but the text I get from the item calls is always "test" regardless of what item I am accessing.</p>
  
  <pre><code>// Highlight differences in the data
  for( int row=0; row &lt; ui-&gt;table_Data-&gt;rowCount(); row++ )
  {
      qDebug() &lt;&lt; "going through rows";
      for( int remaining_rows=row+1; remaining_rows &lt; ui-&gt;table_Data-&gt;rowCount(); remaining_rows++)
      {
          qDebug() &lt;&lt; "going through remaining rows";
          for( int column=0; column&lt;ui-&gt;table_Data-&gt;columnCount(); column++ )
          {
              qDebug() &lt;&lt; "going through columns";
              qDebug() &lt;&lt; row &lt;&lt; ":" &lt;&lt; remaining_rows &lt;&lt; column;
              qDebug() &lt;&lt; ui-&gt;table_Data-&gt;itemAt(row,column)-&gt;text();
              qDebug() &lt;&lt; ui-&gt;table_Data-&gt;itemAt(remaining_rows,column)-&gt;text();
              if( ui-&gt;table_Data-&gt;itemAt(row,column)-&gt;text().compare(ui-&gt;table_Data-&gt;itemAt(remaining_rows,column)-&gt;text()) != 0)
              {
                   qDebug() &lt;&lt; "data does not match";
                   ui-&gt;table_Data-&gt;item(row,column)-&gt;setBackground(Qt::yellow);
                   ui-&gt;table_Data-&gt;item(remaining_rows,column)-&gt;setBackground(Qt::yellow);
              }
          }
      }
  }
  </code></pre>