The qt3to4 tool provides help when moving a project from Qt 3 to Qt
4. It is designed to automate the most tedious part of the porting
effort.

See http://doc.trolltech.com/4.0/qt3to4.html for the user's manual.
