[PyQt] [BUG] QProxyStyle class not available in PyQt (5.4.2)

Florian Bruhin me at the-compiler.org
Fri Jul 3 11:54:42 BST 2015


* 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:

https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/mainwindow/tabwidget.py#L497-L534

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150703/05b713c8/attachment.sig>


More information about the PyQt mailing list