switch to PyQt API 2