Set $QTDIR to your new installation directory and make sure qmake from 3.3.5 comes before the one from 3.1 in your $PATH.