Issue
Is there any way to set column width for QTreeWidget from code? I want to chage default width of first column. I'm using PySide.
Solution
QHeaderView::resizeSection() should do the trick, in C++ it would look like this:
myTreeWidget->headerView()->resizeSection(0 /*column index*/, 100 /*width*/);
Answered By - Chris
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.