Q_INVOKABLE cpp method and passing attributes by reference from qml