Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.8
-
None
-
3bf2fc6eb (dev)
Description
The documentation for Q_DECLARE_OPERATORS_FOR_FLAGS at https://doc-snapshots.qt.io/qt6-dev/qflags.html#Q_DECLARE_OPERATORS_FOR_FLAGS only mentions that the macro generates operator|().
Looking at the code, however, shows that it does much more including operators for &, ~, -, +.
I'm not sure how much of this is relevant in the doc but it would probably be good to at least mention operator&() and operator~() alongside operator|().