Compatibility with Qt 4