Important: Please read the Qt Code of Conduct -

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.

  • Qt Champions 2017

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

Log in to reply