I want "pull"data from c++ in qml like this:

```
   Component.onCompleted: {
        MySettings.loadMainWindowPosition(aAppWnd.x, aAppWnd.y, aAppWnd.width, aAppWnd.height, aAppWnd.visibility);
    }

```

When MySettings registered in the following way:

```
context->setContextProperty("MySettings", m_settings);

```

But when I make the funtion signature like this:

```
void MySettings::loadMainWindowPosition(int& x, int& y, int& width, int& height, int& visibility)

```

I received the following error:

> 
> qrc:/GUI/App.qml:35: Error: Unknown method parameter type: int&
> 
> 
> 

So how correctly "pull" data inside qml from c++?

**UPDATE**:

I explain better. Now I can call the c++ function (and send params) from qml:

```
   Component.onCompleted: {
        MySettings.someFunc(111, 222);
    }

```

In c++ code I receive function call with params values "111" and "222".

But I want change this parameters in c++. I want smth like that:

```
   Component.onCompleted: {
        var a;
        var b;
        MySettings.someFunc(a, b);
    }

```

I want set up in the c++ code params to the "333" and "555". So after call *MySettings.someFunc(a, b)* I expected that (a==333) and (b==555). 

How to do this?