DialogWindow¶
StandardWindow dialog paradigm.
import QWinUI3.Platform · src/platform/QWinUI3/Platform/DialogWindow.qml
Category: Platform · Library: v2.80
Extends StandardWindow.
Example¶
DialogWindow {
id: dlg
title: qsTr("Prompt")
ownerWindow: mainWindow // optional transient parent
width: 420; height: 280
}
dlg.openDialog()
Notes¶
StandardWindow with ParadigmDialog flags. Prefer openDialog() so owner stacking + centerOnOwner match Gallery patterns (2.14). On Linux/Wayland, setTransientParent realizes surfaces before parenting.
API¶
Properties¶
| Name | Type | Description |
|---|---|---|
ownerWindow |
var |
Optional owner Window / Item for transient parenting (Win HWND owner / Wayland stacking) |
centerWhenOpened |
bool |
Center on the owner screen when shown via openDialog() |
Signals¶
No custom signals (use inherited signals from the base type).
Methods¶
| Signature | Description |
|---|---|
openDialog(owner) |
Show as a dialog: wire owner, center, then make visible |
closeDialog() |
Hide without destroying |
Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.