Hi,

the QDialogs in my application are often just hidden when some of the buttons is pressed or some other exit-slot is called so that I just can show and don't have to recreate them if they are requested by the user for the 2nd time. Unfortunately this creates some weirdly looking behavior if you accept/kill one of these dialogs at position X, then move the parent window to some other position and show the dialog again. It will then be shown on its last position which is X and not centered on the parent as you'd expect and as it's done if you spawn and therefore create it for the first time.
Is there a simple way to achieve this without having to recreate the dialog everytime that it's shown and hopefully without writing a hacky routine that makes a recentering on each showEvent?