Why does a modal QMessageBox need a parent?

Vicente Armando SOLE JOVER sole at esrf.fr
Fri Aug 11 11:16:19 BST 2023


Hi!

On 11/08/2023 12:14, c.buhtz at posteo.jp wrote:
> But why do I need "parent" when the dialog is modal? It works well 
> when "parent=None". I see no problem. Are there any shortcomings 
> makeing "parent=None"?
>
That the message box can appear in the center of the screen instead of 
the center of the parent.

It can be very disturbing when working with multiple screens.

Armando



More information about the PyQt mailing list