def METHOD_NAME(self):
    # http://www.qtcentre.org/threads/14764-QTableView-sizeHint%28%29-issues
    t = self._table
    vHeader = t.verticalHeader()
    hHeader = t.horizontalHeader()
    doubleFrame = 2 * t.frameWidth()
    w = hHeader.length() + vHeader.width() + doubleFrame
    contentH = 0
    if self._table.model():
        for i in range(self._table.model().rowCount()):
            contentH += self._table.rowHeight(i)
    contentH = max(90, contentH)
    h = hHeader.height() + contentH + doubleFrame
    from PyQt5.QtCore import QSize
    return QSize(w, h)