Use TextFlags in TableWidget

  • Hi there,

    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?

    thx, Megamouse

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.