How I can send s signal from one qml component to another?
Below is an example:
Rectangle { id: main width: 360; height: 360 signal clicked()
You should use connect() method of component's signals (signals themselves are objects).
connect()
function clickHandler() { console.log('main clicked') } Component.onCompleted: { main.clicked.connect(clickHandler) }
See http://developer.qt.nokia.com/doc/qt-4.8/qmlevents.html