How to adjust a treewidget's columns' width?



  • I'm using Qt designer to design an interface.
    I created a treewidget and added three column to it. The problem is I want to change the column width of these three columns. As I can't drag it in Qt designer, I tried to find a relative function, but until now I cannot find one.

    Is there anybody know how to do and help me with this?

    Thank you.
    Best.



  • did you get a chance to look at QTreeWidget->headerItem()->setSizeHint(....) ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.