aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets/qml/qml-extending-types/signals/parameters.qml
blob: 7400e84ae595c6934a13bac08ab0b13a30b7b0d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick 2.0
//![0]
// application.qml
Button {
    width: 100; height: 100
    onButtonClicked: (xPos, yPos)=> {
        console.log("Mouse clicked at " + xPos + "," + yPos)
    }
}
//![0]