The owner can be set, but the parent is a read-only property.
Qt Code:
var w = new Window (); w.Owner = Window.GetWindow (this); w.Show ();To copy to clipboard, switch view to plain text mode
The owner can be set, but the parent is a read-only property.
Qt Code:
var w = new Window (); w.Owner = Window.GetWindow (this); w.Show ();To copy to clipboard, switch view to plain text mode
Last edited by Gary_Elliott; 26th February 2021 at 17:08. Reason: code display correction
What is this? It isn't Qt code. It isn't even C++, it's C#. So why are you posting this in a Qt forum?var w = new Window ();
w.Owner = Window.GetWindow (this);
w.Show ();
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks