Combine qt4 & qt5 changes.