Compatibility with PyQt4 v2.6