setWindowFlags(Qt::WindowStaysOnTopHint) does not help...By using it the window is not even displayed..

I have already passed the parent in the constructor while creating the widget.

Problem not solved.... Help....