I would like to build static library with qt. I use qtcreator on mac os X

I add to my .pro this
Qt Code:
  1. CONFIG += static
  2. CONFIG += staticlib
To copy to clipboard, switch view to plain text mode 

but it is still doesn't work.

I should build qt in static from source ? or can I use qtcreator directly ?

how to rebuild qt creator on mac os x to use it with qtcreator and not xcode ?