Modified for Qt5.1.0 BETA