View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#33
Originally Posted by qwazix View Post
When referencing the Menu directly (and not as part of pageStackWindow), I get the following error. I tried to dig down to the PopUp element but it doesn't seem to inherit or otherwise use dialog.

Code:
ReferenceError: Can't find variable: DialogStatus
                        ScriptAction { script: root.status = DialogStatus.Open }
what can I do to get over that?

Menu implementation as follows
Code:
    Menu{
        id: menu
        MenuLayout{
            Button{ text: "adasd"}
        }
    }
The MenuLayout should be assigned to the tools property of the Menu:

Code:
    Menu{
        id: menu
        tools: MenuLayout{
            Button{ text: "adasd"}
        }
    }
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub