[PyQt] Which QStyle

Matt Newell newellm at blur.com
Tue Jul 21 22:03:15 BST 2009


On Tuesday 21 July 2009 13:46:09 Mads Ipsen wrote:
> How do I programatically determine which style I am using, i.e. whether
> it's QWindowsStyle, QMacStyle, QMotifStyle etc.

style = QApplication.instance().style()
print style.metaObject().className()


Matt


More information about the PyQt mailing list