Do not define Q_INVOKABLE in definition of method
https://doc.qt.io/qt-5/qobject.html#Q_INVOKABLE states that the macro should be applied to the declaration and not the definition of the methods.
https://doc.qt.io/qt-5/qobject.html#Q_INVOKABLE states that the macro should be applied to the declaration and not the definition of the methods.