From 37dfd1255a8d1afa89fca1ab7515b9142e8ab6f5 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Mon, 1 Sep 2025 13:31:49 -0400 Subject: [PATCH] use window popup type to allow menu outside of parent window --- components/StyledMenu.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/StyledMenu.qml b/components/StyledMenu.qml index 24815b6..12830d7 100644 --- a/components/StyledMenu.qml +++ b/components/StyledMenu.qml @@ -1,4 +1,5 @@ import qs.config +import qs.services import QtQuick import QtQuick.Controls @@ -10,6 +11,11 @@ Menu { focus: true closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent + popupType: Popup.Window + + function toggle() { + visible ? close() : open(); + } enter: Transition { NumberAnimation {