aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets/qml/qml-extending-types/signals/parameters.qml
blob: a473d9c5031ae7e867461a61c0b9e2133810c8fb (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
//![0]
// application.qml
Button {
    width: 100; height: 100
    onButtonClicked: (xPos, yPos)=> {
        console.log("Mouse clicked at " + xPos + "," + yPos)
    }
}
//![0]