how to word wrap a QTreeWidgetItem
Posted
by japs
on Stack Overflow
See other posts from Stack Overflow
or by japs
Published on 2010-03-03T09:28:53Z
Indexed on
2010/03/24
12:23 UTC
Read the original article
Hit count: 387
hello all, i have to populate a QTreeWidget with items (or children of items) that may happen to be too long to fit in a single line, so i'm looking for a way to word wrap them.
i thought
myQTreeWidget.setWordWrap(True)
(done via QtDesigner4) would have done the job, but that doesn't seem to be the case.
i don't konw if it is relevant, but the tree is enveloped in a splitter frame, so the wrapping should be somehow dynamic to allow resizing of the splitter.
Any ideas? I use PyQt4, but hints in any language/binding would be much appreciated. have a good day all.
© Stack Overflow or respective owner