Compatiblity with Qt4