Make this also work with Qt4.