Important: Please read the Qt Code of Conduct -

QListWidget basic help

  • This a super basic question (new user). I want to have a list of strings presented to the user from which he can add, remove or edit the items. I am keeping them in a Python list. I created a QListWidget and dumped the initial items in there with
    addItems(). I wasn't sure what the widget natively does. Do I have to add external buttons and text boxes to allow adding of items, and another external button to delete items? Also, by default, none of the items appear editable either. Do I need to loop through each item manually and set a property to make it editable?

  • @Mastiff
    I think How to make QListWidget items editable does what just what you want, and as a bonus it's in Python :)

Log in to reply