Allow me a gentle bump with a little more info.
I realize that I have to use signals and slots to achieve this. My confusion is what signals and slots I should use in all three classes (QTextEdit, QStyledItemDelegate, and QTableView) to do the work. Currently, in the custom QTextEdit class I have connected the textChanged() signal to a custom slot that resizes the QTextEdit as text is added or removed. This indeed works in the table view but the row doesn't resize automatically too so, while editing a cell, the QTextEdit overlaps to the next row. After I leave the edited cell, the row resizes properly.
I suppose I will have to connect a signal from the delegate to the resizeRowToContents(int) slot in the QTableView and that's where I could use some help.
TIA