Hmm... So every time you are adding item to different QListWidget? So after clicking OK (or what do you have there) 10times, you will have 10 QListWidgets? I don't think that this is what you really want...
So pass the pointer to your QListWidget to this dialog.To keep one instance of QListWidget for all the dialog i need to keep a global variable which is not a good programming style.
Bookmarks