Error in declaration within accessors
-
-
Because Q_OBJECT defines some private variables:
https://code.woboq.org/qt5/qtbase/src/corelib/kernel/qobjectdefs.h.html#_M/Q_OBJECT -
@aha_1980 said in Error in declaration within accessors:
please provide code and compile errors as text, not as mobile screen photo.
It was from an isolated server which does not connected to the internet, so could not able to copy and paste but will try to type and submit from now onwards
-
@Christian-Ehrlicher said in Error in declaration within accessors:
Because Q_OBJECT defines some private variables:
https://code.woboq.org/qt5/qtbase/src/corelib/kernel/qobjectdefs.h.html#_M/Q_OBJECTI'm finding difficulty in understanding.
provide me an example, please? -
When you take a look at the Q_OBJECT macro you'll see that it expands to some code which adds a private member section.
-
@aha_1980 said in Error in declaration within accessors:
Thanks. The problem is, you get help here, but that will not help anyone later once the picture is no longer available.
Sorry:
Also, I'm having a hard time reading this on my phone right now.
I will type next onwards.