Quote Originally Posted by bismitapadhy View Post
Everytime if i will create a new instance of the QLIstwidget, adding itm and doing exec() it is adding in the beginning of the list.
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...
To keep one instance of QListWidget for all the dialog i need to keep a global variable which is not a good programming style.
So pass the pointer to your QListWidget to this dialog.