Quote Originally Posted by Sarma
We are creating the instance of the findbox in the application even before clicking it. Now for any reason if we donot click the button , doesn't that cause memory wastage?
Since you don't supply any parent for the widget, it doesn't get destroyed automatically. So you will have to delete it in the descructor.
A widget without a parent is always an independent window.. But why don't you just use a modeless dialog? Then you could pass your window as a parent, the dialog would show up centered to your window, and it would get automatically deleted..