compatible with Qt 4.8