title: How to prevent too aggressive text elide in QTableview?
body: <p>I have an issue with text elide in Qt being too aggressive in a table, see picture.
  <a href="https://i.stack.imgur.com/7Ktnq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7Ktnq.png" alt="enter image description here" /></a></p>
  <p>The cell with the full figure 0.8888.... I've edited since the QTableWidget was shown, the others are are as the were when the QTableWidget was created. It seems like the elide is calculated on a lesser width that is actually the case. How can I prevent this and get proper text elide immediately when the widget becomes visible?</p>
  <p>Simplifide code to reproduce:</p>
  <pre><code>QTableWidget *tableWidget;
  tableWidget = new QTableWidget(Dialog);
  tableWidget-&gt;setGeometry(QRect(40, 20, 256, 192));
  tableWidget-&gt;setRowCount(4);
  tableWidget-&gt;setColumnCount(1);
  tableWidget-&gt;setItem(0, 0, new QTableWidgetItem(&quot;0.234823489789234&quot;));
  </code></pre>
  <p>and result</p>
  <p><a href="https://i.stack.imgur.com/TNZPX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TNZPX.png" alt="enter image description here" /></a></p>
  <p>Note that I would like to avoid doing the elide myself since the user can edit the value. Doing the elide myself would then mean putting back the real value when editing starts, perhaps via delegates. Would be complicated.</p>