I have an invokable function in C++ that should be const with const parameters:
I register it with QML like this:
It would be better if it were possible to use the const type in QML and just get an error if any non-const operations (getters, setters, invokables) were performed on it, if that's even possible. I don't know if e.g. moc even stores constness of functions, or whether such a change to the QML engine would affect performance adversely... but it would be nice to have.