[PyQt] [BUG] QProxyStyle class not available in PyQt (5.4.2)
rutsky.vladimir at gmail.com
Fri Jul 3 12:32:49 BST 2015
On Fri, Jul 3, 2015 at 1:54 PM, Florian Bruhin <me at the-compiler.org> wrote:
> * Vladimir Rutsky <rutsky.vladimir at gmail.com> [2015-07-03 13:27:07 +0300]:
>> As far as I see, QProxyStyle is not available in PyQt.
>> It looks like an ordinary Qt class, it's base class QCommonStyle
>> available in PyQt, so I don't see any problem with wrapping
>> QProxyStyle in PyQt.
> I've seen the same but never brought it up here as I forgot and I need
> to support older PyQt5 versions either way.
> As a workaround, I ended up using a QCommonStyle with some
> getattr()/setattr()/functools.partial() calls:
Thanks, Florian, very helpful workaround!
More information about the PyQt