[PyQt] PyQt5 QStyleOptionButton enum problem
Phil Thompson
phil at riverbankcomputing.com
Wed Oct 28 05:43:41 GMT 2015
On 27 Oct 2015, at 3:32 p.m., Damon Lynch <damonlynch at gmail.com> wrote:
>
> 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)
Should be implemented as None_ in current snapshots.
Thanks,
Phil
More information about the PyQt
mailing list