QML Snippets Documentation

To activate a snippet type in the snippet shortcode and hit Tab.

Button

1. Shortcode: but

Button {
    text: "Ok"
    onClicked: submit()
}
GIF

2. Shortcode: butid

Button {
    id: 
    text: "Ok"
    onClicked: submit()
}
GIF

Property

1. Shortcode prop

property type name

2. Shortcode pint

property int name: 1

3. Shortcode pbool

property bool name: false

4. Shortcode pdouble

property double name: 3.14159

5. Shortcode pvar

property var name: anytype

6. Shortcode pstr

property string name: "your text"

7. Shortcode palias

property alias name: aliasreference

Mouse Area

1. Shortcode moa

MouseArea {
    anchors.fill: parent
    onClicked: {}
}