This is now ported to QT5