PyQt 4.11 compatibility