Finally qt4 compatible