Qt

Build OpenCV with Qt Creator on Windows

Follow the listed tutorials one by one, in general there are steps to follow

1. make sure you download the right version for both OpenCV and Qt library

2. extract OpenCV and install Qt with Qt Creator on your computer

3. set environment variable:

QTDIR = C:\Qt\5.1.0,

QMAKESPEC = win32-msvc2010 (not sure with this),

Path = C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin; C:\Qt\Qt5.1.0\Tools\mingw48_32\bin

2. install CMake with “set environment variables for all user”

3. build OpenCV in CMake

4. use command prompt to install opencv with MinGW

Build Qt for Visual Studio 2010

Tried to build Qt on Visual Studio 2012, tested out couple of cumbersome tutorials, no lucky.
Go back to VS2010, here is the tutorial which provides neat steps to get this thing work.
http://stackoverflow.com/questions/5601950/how-to-build-qt-for-visual-studio-2010

http://qt-project.org/forums/viewthread/5362