Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.15.2
-
None
-
Windows10
Description
There is a problem with the click processing method access modifier. There is a structure in the controller class that hides its private field.
class Controller : public QObject { Q_OBJECT public: explicit Controller(QObject *parent = nullptr); struct Test { private: int m_data; }; Q_INVOKABLE void processClick(); };
In the moc_ file, this field is marked as private, respectively, when called from the QML we get the following error:
qrc:/main.qml:22: TypeError: Property 'processClick' of object Controller(0x26cd170) is not a function
such behavior is observed both for the build of MINGW and for MSVC2019
----------------------------------------
When placing the structure below the method declaration, or removing the word "private" from it, the defect is not reproduced