Important: Please read the Qt Code of Conduct -

How to populate QTreeWidget like a list?

  • All i want to do is populate the following QTreeWIdget with a list of games and their version like so

    Anyone have any advice on how to do this? i tried adding all the QTreeWidgetItem's to a giant QList then add them all at once with the following instruction:


    but it produced the above result. Any help is greatly appreciated!

    NOTE: also if i should be using list view instead could anyone please let me know how i can adjustable column bar to the top like the QTreeWidget offers?

  • How about you use QTableWidget instead then?

Log in to reply