Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Insert delete button in QWidgetList item
Forum Updated to NodeBB v4.3 + New Features

Insert delete button in QWidgetList item

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.3k 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.
  • mandruk1331M Offline
    mandruk1331M Offline
    mandruk1331
    wrote on last edited by mandruk1331
    #1
    This post is deleted!
    jsulmJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You can use
      http://doc.qt.io/qt-5/qlistwidget.html#setItemWidget
      To insert the button.
      Note this wont work well if you have many items but a few is ok.

      1 Reply Last reply
      2
      • mandruk1331M mandruk1331

        This post is deleted!

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @mandruk1331 You should be more careful when asking questions!
        This:

         Insert delete button in QWidgetList item
        

        is something completely different to:

        I have an item in a QWidgetList and I want to be able to delete it
        

        The documentation contains needed information: http://doc.qt.io/qt-5.7/qlistwidget.html#removeItemWidget

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

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