Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
6.5, 6.6, 6.7, 6.8
-
None
-
ce26eaf1b (dev), f036e6f1a (6.7), c7dc10d0f (tqtc/lts-6.5)
Description
https://doc.qt.io/qt-6.5/qobject.html#Q_OBJECT
The main paragraph emphasizes that the access modifier should be private. This is an old requirement. Starting with 6.5, adding Q_OBJECT adds the private access modifier by itself. Users no longer need to add the macro to a private: section. So, the main paragraph is not completely valid anymore.
The same is valid for Q_GADGET and other similar macros.
The Meta-Object System topic also mentions obsolete requirements.
Attachments
For Gerrit Dashboard: QTBUG-125776 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
564032,4 | Docs: Update the obsolete requirements for Q_OBJECT and Q_GADGET | dev | qt/qtbase | Status: MERGED | +2 | 0 |
564657,2 | Docs: Update the obsolete requirements for Q_OBJECT and Q_GADGET | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
566166,2 | Docs: Update the obsolete requirements for Q_OBJECT and Q_GADGET | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |