Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Learning
  3. Qt in Education
  4. How to add multiple items to a list using QlistWidget?
Forum Updated to NodeBB v4.3 + New Features

How to add multiple items to a list using QlistWidget?

Scheduled Pinned Locked Moved Qt in Education
2 Posts 2 Posters 2.8k 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.
  • C Offline
    C Offline
    chillin
    wrote on 31 Dec 2013, 13:18 last edited by
    #1

    I have created two list using qlistwidget. When a push button is pressed I need to add multiple items selected in one list to another list. Please provide me an example code to store selected multiple items in a list and to add multiple items to another list.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 31 Dec 2013, 21:48 last edited by
      #2

      Hi and welcome to devnet,

      You should have a look at QListWidget::selectedItems and QListWidget::insertItems

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      31 Dec 2013, 13:18

      • Login

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