New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q_PROPERTY switches the member access from private to public (Origin: bugzilla #734245) #5537

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.8.7 on platform Other
Assigned to: Dimitri van Heesch

On 2014-08-04 18:40:13 +0000, Kuba Ober wrote:

The presence of Q_PROPERTY in the private section of a class causes subsequent members to be treated as if they were was public:

/// Foobulates grobs.
class Foo : public QObject {
/// Indicates grob's rombulation.
Q_PROPERTY(bool prop READ prop)
int q; // treated as if it was public, but it's private

$ doxygen -g Doxyfile
$ doxygen > /dev/null
x.h:6: warning: Member q (property) of class Foo is not documented.

Removing the Q_PROPERTY line causes the issue to disappear.

The expected behavior is that a Q_PROPERTY entry does not change the access of the subsequent members. The Q_PROPERTY is a moc macro and it has an empty body.

On 2014-08-15 09:05:55 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next GIT update.

On 2014-08-15 15:27:11 +0000, Kuba Ober wrote:

Great! Thank you very much!

On 2014-08-21 17:15:36 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.8. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant (preferrably in the form of a self-contained example).

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment