I need to create for an application a window which can go out of the main window of the application. So I thought about creatin a widget with no parent. But I then have several problems :

¤ if I destroy the main window I still need to destroy the second window to stop the application,
¤ I have a box for this independant winodw in the systray,
¤ I need absolute coordinates of a UI widget of the main window to place the independant window but I only get relative coordinates atm

Is there an alternative way to do so, or do you know hoiw to avoid the problems I have ?
About destruction I figure how to do but I don't find the solution for the 2 other problems.