Qt 4 compatibility.