http://www.npcglib.org/~stathis/blog/precompiled-qt4-qt5/
I spend a considerable amount of time compiling Qt4 and Qt5 with MySQL and OpenSSL support on Windows using Microsoft Visual Studio. I compile all libraries statically and dynamically, in release and debug mode, for both 32- and 64-bit. I do split-builds, i.e. each configuration in its own directory. Qt is a big beast that comes along with plenty of quirks when it comes to building it from scratch. It keeps improving however. It takes me around a day’s worth of compiling to build both Qt4 and Qt5, together with their dependencies.