diff --git a/src/controls/templates/OverlaySheet.qml b/src/controls/templates/OverlaySheet.qml --- a/src/controls/templates/OverlaySheet.qml +++ b/src/controls/templates/OverlaySheet.qml @@ -109,6 +109,13 @@ */ property Item background + /** + * showCloseButton: bool + * whether to show the close button in the top-right corner + * @since 5.44 + */ + property bool showCloseButton: true + property Item parent @@ -294,7 +301,7 @@ top: headerItem.top } z: 3 - visible: !Settings.isMobile + visible: !Settings.isMobile && showCloseButton width: Units.iconSizes.smallMedium height: width source: "dialog-close"