PopupMode=pmExplicit and PopupParent<>nil do not work with modeless windows on Qt/Gtk2
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:
When setting PopupMode=pmExplicit and PopupParent to a form, the dialog should stay on top of PopupParent (only).
It works on win32. It doesn't work on Qt/Gtk2.
(This may be a WS limitation and a fact that the problematic WS do not support such a feature - I hope not.)
Steps to reproduce:
Run this code (e.g. from a button):
procedure TForm1.BitBtn2Click(Sender: TObject);
var
Dlg: TForm;
begin
Dlg := TForm.CreateNew(Self);
Dlg.Position := poDesigned;
Dlg.Left := Left;
Dlg.Top := Top;
Dlg.PopupMode := pmExplicit;
Dlg.PopupParent := Self;
Dlg.Show;
end;
Then click back to Form1.
- win32: Dlg above Form1
- Gtk2/Qt: Dlg below Form1 (wrong)
Additional information:
Furthermore when closing Form1 on Qt, you get a SIGSEGV and the application crashes.