Home > Mobile >  QTreeWidget in text node, a long omitted, bosses, please have a good solution
QTreeWidget in text node, a long omitted, bosses, please have a good solution

Time:02-04

Doing a log analysis tools, including a log according to the function, the module for folding with the QTreeWidget controls,
Single line is too long but there are some log overflow boundary was omitted, and the sliding block those no use, is there a good solution for bosses, both can be folded and can display all of the text,

Add: I am using Pyside2 Qt because doing automated testing is written in python


CodePudding user response:

Try QHeaderView: : ResizeToContents

TreeWidget - & gt; The header () - & gt; SetSectionResizeMode (... )
  •  Tags:  
  • Qt