Qt5 compatibility.