Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to add multiple items to a list using QlistWidget?



  • 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.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

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


Log in to reply