Some qml api improvements