You have got another option also, if you are not a hardcore linux fan. Donot install from terminal window, Instead try easier option. Goto Applications->Ubuntu software center. There select developer tools & then just enter qt4 in search box. it will automatically list out all qt4 package available. My advice is go for qt creator, it has everything in it. I am sure u will love it.
Bookmarks