Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Button {
- id: control
- width: 48; height: 48
- property real offset: 16
- onClicked: if (!menu.opened) menu.open()
- Menu {
- id: menu
- x: control.width + control.offset
- delegate: MenuItem { }
- // Some Actions
- }
- Shape {
- id: shape
- x: control.width
- y: 0.5*control.height - 0.5*height
- width: control.offset; height: control.offset
- visible: menu.opened
- ShapePath {
- fillColor: "red"
- strokeWidth: 5
- strokeColor: "red"
- startX: 0; startY: 0.5*control.offset
- PathLine { x: control.offset; y: control.offset }
- PathLine { x: control.offset; y: 0 }
- PathLine { x: 0; y: 0.5*control.offset }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement