Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.5.5, 6.6.2, 6.7.0 Beta2, 6.7, 6.8.0 FF
-
6.4.2, 6.5.3
-
None
-
Apple Silicon (M1); MacOS 13.4.1; Qt Creator 11.0.3
-
-
eb2db7906 (dev), 9fb14df81 (6.7), 8db678128 (6.6), 4f69c82ce (tqtc/lts-6.5)
Description
When Q_GADGET appears in a class or struct, it forces everything following it to be private.
In the following C++ struct
struct MyGadget { int publicInt; Q_INVOKABLE publicQInvokable(); Q_GADGET int privateInt; Q_INVOKABLE privateQInvokable();
Of course everything in a struct should be public unless explicitly changed, yet everything following Q_GADGET is private unless explicitly changed.
Attachments
For Gerrit Dashboard: QTBUG-120297 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
530666,1 | QObject: clarify docs wrt. member access following Q_OBJECT and co | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: NEW | 0 | 0 |