Add support for PyQt5.
Merge pull request #5458 from pwuertz/qt5

Add support for PyQt5.