No PyQt6 docs for enum access?

Phil Thompson phil at riverbankcomputing.com
Mon Nov 1 16:57:15 GMT 2021


On 01/11/2021 16:55, Florian Bruhin wrote:
> Hi again,
> 
> Right now I'm teaching a newcomer to PyQt6 who was surprised that they
> had to use e.g. Qt.Orientation.Vertical rather than Qt.Vertical.
> 
> I wanted to link them to something about enums in the PyQt6 docs, but
> all I found was this from the PyQt5 docs:
> https://www.riverbankcomputing.com/static/Docs/PyQt5/gotchas.html#enums
> 
> Is it intentional that this was removed in the PyQt6 docs, am I missing
> something, or is it not documented at all so far?

They are implemented as Python enums and that's how Python enums work.

Phil


More information about the PyQt mailing list