Search code examples
pythonpython-3.xpyqtpyqt5qtreewidgetitem

How can I set the width of a QTreeWidgetItem?


Does it exist an equivalent function of QTreeView.setColumnWidth() for a QTreeWidgetItem ?


Solution

  • QTreeWidget inherits QTreeView, so you can use any function of QTreeView in a QTreeWidget.