use window popup type to allow menu outside of parent window
This commit is contained in:
parent
a40f7666dc
commit
37dfd1255a
1 changed files with 6 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import qs.config
|
import qs.config
|
||||||
|
import qs.services
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
|
||||||
|
|
@ -10,6 +11,11 @@ Menu {
|
||||||
|
|
||||||
focus: true
|
focus: true
|
||||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
||||||
|
popupType: Popup.Window
|
||||||
|
|
||||||
|
function toggle() {
|
||||||
|
visible ? close() : open();
|
||||||
|
}
|
||||||
|
|
||||||
enter: Transition {
|
enter: Transition {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue