[PyQt] PyQt5 QStyleOptionButton enum problem

Damon Lynch damonlynch at gmail.com
Tue Oct 27 15:32:59 GMT 2015


I have no idea if this is expected behaviour, but this definitely does not
work with Python 3.4.3+ and PyQt 5.4.2:

QStyleOptionButton.None

Whereas other enum values like these do:
QStyleOptionButton.Flat

For now I'm using this as a workaround, which I hope will work:
QStyleOptionButton.ButtonFeature(0)


Best,
Damon
-- 
http://www.damonlynch.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151027/f3c8489c/attachment.html>


More information about the PyQt mailing list