Use TextFlags in TableWidget
Whenever I make my TableWidget rows narrow so that only one line could fit in it cuts of multi-line text on top and bottom.
As a solution I'm trying to use TextFlags in my TableWidget, in particular the TextSingleLine flag, which seems to do exactly what I need without explicitly changing all the text to not use newlines, but spaces instead.
But I can't seem to find the correct object to place the flag on. TableWidgetItem only uses ItemFlags for example.
What's the best way to use it then? Or is there a better solution to my problem than the TextSingleLine flag?