Bug fix for Qt 4.2, 4.3