[PyQt] Qt/PyQt 5.9.x. Correct way to get an "enumeration flags" to return 0?

Barry Scott barry at barrys-emacs.org
Wed Jul 10 21:27:58 BST 2019



> On 10 Jul 2019, at 11:55, J Barchan <jnbarchan at gmail.com> wrote:
> 
> If I return QOrientations() that works, but I'm unsure if that guarantees to return zero.

I've not tried this - not ready to update Qt yet - does this print 0 to confirm the value in the enum?

print( int( QOrientations())

Barry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190710/113cf0cc/attachment.html>


More information about the PyQt mailing list