Hi everyone,
I want to make editable cells with multi-lines content in QTreeWidget and I use for this purpose QPlainTextEdit as a delegate. I need to set proper size to all rows that switching between editing and displaying went smooth, without any visible changes.
rect = textEdit.blockBoundingRect(textEdit.firstVisibleBlock())
- with this I can find out the height I need to set for the row, but I missing the place where I can do it.
How can i set proper height to QTreeWidget's rows on initialization stage and how to handle it's changes?
Thank you in advance, Serge