Fix for Qt4.