Add support for Qt5

Todo:
* Test with Qt4