that I can access all the enumerators of all enums, like Qt::AlignLeft, here AlignLeft is an enumerator of the enum AlignmentFlag. But how I can access directly AlignLeft? Why not to write Qt::AlignmentFlag::AlignLeft?
i think they are equivalent, since Qt::AlignmentFlag is an enum, not an enum class
You must have using declaration
Here you clearly said you can access names in the QT namespace without using Qt::
Because https://www.learncpp.com/cpp-tutorial/4-5a-enum-classes/
Обсуждают сегодня