$ 0 0 qml editor? are you using some kind of qml editor? because that code is entirely valid, all things otherwise.