How to resize all cells of a QTableView to a fit size - PyQt5 : <p>I am trying to make each cell of a PyQt5 Table View to fit so no ... at the end of the text</p>

<p>I tried:</p>

<pre><code>MyTable.resizeColumnsToContents()
</code></pre>

<p>But it didn't work</p>

<p>My final Question is How to make the cells' text fit into the cell, so can see the whole text </p>
