I'm trying to implement copying all items from one Qlistwidget to another in pyqt5 but I can't get the right method of doing it. Any suggestions will be appreciated.
This is the sample code of what I'm trying to implement:
def expand_camera_view(self):
for i in range(self.cameraList.count()-1):
new_item = self.cameraList.item(i)
self.allCamerasList.addItem(new_item)
I want to copy items from cameraList to allCamerasList. Both are QListWidgets. Thank you