Qt: when dialog with PopupParent is shown and you select another form (not PopupParent), the dialog is hidden
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
Have MainForm, Form2 and Dlg.
Form2 is non-modal and has no parent window.
Dlg is non-modal and has parent window set to Form2.
When you activate (focus) MainForm, Dlg gets completely hidden.
Steps to reproduce:
Run the following code:
procedure TForm1.BitBtn2Click(Sender: TObject);
var
Dlg, Form2: TForm;
begin
Form2 := TForm.CreateNew(Self);
Form2.Position := poDesigned;
Form2.Left := 0;
Form2.Top := 0;
Form2.Show;
Dlg := TForm.CreateNew(Self);
Dlg.Position := poDesigned;
Dlg.Left := Left div 2;
Dlg.Top := Top div 2;
Dlg.PopupMode := pmExplicit;
Dlg.PopupParent := Form2;
Dlg.Show;
end;
And then click on MainForm (TForm1). Dlg gets hidden. Click on Form2, Dlg is shown.
Additional information:
Only Qt defected. win32 and Gtk2 behave correctly. I tested on Linux/KDE.
It is not a regression from r51032.