title: How to get only number of rows/columns with values in them in a QTableWidget?
body: <p>I have a tablewidget on PyQt5 with a default number of 20 columns. Only the first two columns have any values in them, the rest are empty. Is there any way to return the number of columns/rows with values in them.</p>
  <p>This    <code>new_cols = self.tableWidget.columnCount()</code> was the only thing I could find on returning column count.</p>