I just installed Qt5.3.1 on Lion 10.7.3
1. did you install CommandLineTools for Xcode 1st?
2. then Xcode what ever version for your Mac OS X version
3. trick for me was after opening the dmg, copy the Xcode to /Applications directory, then installing.
4. had to do step 3, to get below to work in terminal....
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
To copy to clipboard, switch view to plain text mode
5. Install Qt of course, I chose all the packages
6. then in .pro file I had to add
QMAKE_MAC_SDK = macosx10.7
QMAKE_MAC_SDK = macosx10.7
To copy to clipboard, switch view to plain text mode
sounds dumb but I also had to update my ITunes (don't know or want to know why)
I also had to play around with different versions of Xcode all of which "should've" worked, but took 3 installs till I had the exact one I needed.
this link is a big help
http://en.wikipedia.org/wiki/Xcode
hope you solve your issue
Bookmarks