I have my C++/QT code
// .hpp
Q_PROPERTY(int Index READ Index WRITE setIndex NOTIFY IndexChanged)
public:
int Index() const;
int Index(int n) const;
void setIndex(int index):
//.cpp
setContextProperty(QStringLiteral("target"), this)
On the QML side i can access the index using target.Index. What is the syntax for using the taget.Index(int n) for example target.Index(8) gives me errors. Any examples for overloaded read function ?