how to align multi column in QTreeWidget......



  • how to align multi column in QTreeWidget......
    i set 1st column a simple buttun, 2nd column a simplt button, using ItemWidget...and the 3rd column the normal icon and text....
    but the when there are hirarchy, the Qt small triangle is infront of all columns, and the 1st column is streched...however the 2nd and 3rd column are in a straight line vertically....this is really not what i want....
    is there any way to "push" the 2nd and 3rd column to the 1st column according to every single row's situation....

    ps. i know use just 1 column, and customise a QWidget to setItemWidget is a possible way. However, i want to know is there any simple way to relize this.

    thank you very much!



  • how can i upload local pic ?





  • u mean firstly i upload pic into this site, and then set img url in this post?
    thank you !


Log in to reply
 

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