Hi,

I had fetched the list of products and stored in javascript var in main.qml. Now I want to pass the var to ListProduct.cpp.
How should I pass the var.

Code Snippets:

main.qml [in button click event]

var varResultArray;

varResultArray = idPortalSearchItems.results[1];

objHomeController.eveWriteXMLFile(varResultArray) //passing var from main.qml

ListProduct.h
----------------
Q_INVOKABLE bool eveWriteXMLFile(var ResultArray);//Showing the error.


Query: What i have to declare in the declaration of the method in LisProduct.h to receive the var as the parameter.


Thanks in advance.