Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.5.4, 6.7.3
-
None
Description
class TestClass : public QObject{ Q_OBJECT public slots: void testFunction(std::function<void(const QByteArray &)> successCallback) {} };
Given the code above the moc file contains a different function signature than the one provided as a slot.
case 0: _t->testFunction((*reinterpret_cast< std::add_pointer_t<std::function<const void(QByteArray&)>>>(_a[1]))); break;
Seems like the `const` qualifier has relocated.
Removing `slots` from the access modifiers resolves the compilation issue.