Based on Qt 4.7