[Development] API style guide: scoped enum or not?

Tor Arne Vestbø Tor.arne.Vestbo at qt.io
Wed May 3 19:39:25 CEST 2023

On 3 May 2023, at 19:22, Thiago Macieira <thiago.macieira at intel.com> wrote:

I'd say that any new enumeration in the Qt namespace should be enum class, but
enums in classes may not be so if they're sufficiently descriptive already.

Agreed, and this is also what our current API design guide says:

API Design Principles - Qt Wiki<https://wiki.qt.io/API_Design_Principles#Naming_Enum_Types_and_Values>

tor arne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230503/d4f86cba/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: favicon.ico
Type: image/vnd.microsoft.icon
Size: 5430 bytes
Desc: favicon.ico
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230503/d4f86cba/attachment.ico>

More information about the Development mailing list