The output is: qrc:/qml/home.qml:35:. Just empty line.
But when I call console.log() directly all stuff works. Example:

Image {
onWidthChanged: console.log(imageId.width)
}

P.S.
I'm working not in the main.qml, the structure of my qml file looks like this:

Rectangle {
Image {
}
}

]]>https://forum.qt.io/post/292963https://forum.qt.io/post/292963Fri, 09 Oct 2015 13:38:23 GMTI'd try naming your function differently. There are naming conflicts with using widthChanged() since Image already has a widthChanged(). Try imageWidthChanged() as a name or something.

If you really want to use widthChanged(), you could give an id to the parent of the widthChanged() js function. See below: