Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QListWidget basic help

QListWidget basic help

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 385 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mastiff
    wrote on last edited by
    #1

    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?

    JonBJ 1 Reply Last reply
    0
    • M Mastiff

      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?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

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

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved