I wanted to make sure that I can build Qt apps on os x, the documentation is a little bit weak, especially with respect to explaing how to get qmake to automatically shove the right framework components into the .app bundle.
However the following steps were able to build an appropriate bundle.
export QTDIR=/usr/local/Trolltech/Qt-4.1.0 export APP=hello mkdir ${APP}/Contents/Frameworks rsync -av --exclude "_debug" --exclude "Headers" ${QTDIR}/lib/QtCore.framework ${APP}.app/Contents/Frameworks rsync -av --exclude "_debug" --exclude "Headers" ${QTDIR}/lib/QtGui.framework ${APP}.app/Contents/Frameworks rsync -av --exclude "_debug" --exclude "Headers" ${QTDIR}/lib/QtOpenGL.framework ${APP}.app/Contents/Frameworks
install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore ${APP}.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore install_name_tool -id @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui ${APP}.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui install_name_tool -id @executable_path/../Frameworks/QtOpenGL.framework/Versions/4.0/QtOpenGL ${APP}.app/Contents/Frameworks/QtOpenGL.framework/Versions/4.0/QtOpenGL
install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore ${APP}.app/Contents/MacOS/${APP} install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui ${APP}.app/Contents/MacOS/${APP} install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtOpenGL @executable_path/../Frameworks/QtOpenGL.framework/Versions/4.0/QtOpenGL ${APP}.app/Contents/MacOS/${APP}
install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore ${APP}.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore ${APP}.app/Contents/Frameworks/QtOpenGL.framework/Versions/4.0/QtOpenGL
There's probably some way of emedding that in a .pro file, but I don't know it yet. Also the cp -R really should be modified to not copy the header and debug parts of the framework if one wants a reasonable download size.