See the changes made for the QListWidgetItem to be passed from Inbox object to SpamBox object.
Please note that I don't "agree" with your implementation. You are making things too complicated without reason (but I will not redesign your classes)
NOTE: I had to comment out many headers that were not in my system to compile but they are irrelevant to your problem
Bookmarks