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

    http://imageshack.us/photo/my-images/705/fhirqd.png/

    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:

    ui.treeWidget->addTopLevelItems(widgetList);

    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
 

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