fix #21819: Q_INVOKABLE needs namespace declaration, better fix for #21812