Hi!

Sometimes I get blank rows at end of the QTableWidget after populating data. Look how it looks like:

blankrow1.png

Just after sorting table (clicking over header) the blank rows simply disappear:

blankrow2.png

What could be going on here? I double checked to confirm that I'm not setting wrong values with setRowCount(). Here is the code.

Thanks!