[PyQt] Is this the supported PyQt5 way to reset a flag?
Damon Lynch
damonlynch at gmail.com
Tue Mar 8 06:29:57 GMT 2016
The Qt 5 docs specify enum Qt::AlignmentFlag and flags Qt::Alignment.
Obviously this is valid:
layout.setAlignment(widget, Qt.AlignTop)
But is this supported?
layout.setAlignment(widget, Qt.AlignmentFlag())
It has the effect of resetting the alignment flag, which is precisely what
I want it to do. Is that the supported way of resetting a flag? If this is
already discussed in the docs please let me know as I've been unable to
locate it.
Thanks
Damon
--
http://www.damonlynch.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160308/f8254e11/attachment.html>
More information about the PyQt
mailing list