Linking opencv lib with Qt

Hello everyone.

I am trying to use opencv C++ with Qt. Wondering if i need to re-compile opencv with minggw for windows 10 and link or can i link the downloaded windows version directly in .pro file.

This may be an old topic. If so please connect me to those threads


if you want (or have to) use mingw, you will have to build from src, anyway (there are no prebuilt libs for this). and probably you cannot use the toolchain, that comes with qt (it needs a posix-enabled mingw, like mingw64 8.1.0)

if on the other side you want to use VS here, you only need to rebuild from src, if you want the qt extensions for the highgui module (not, if you just build your own gui)