added support for QT4