I really did it, and it was pretty easy. You can download the QtSDK from the qt site as a dmg by setting this to just click and play.
After that I used MacPorts, MacPorts - a package manager (e.g. aptitude, portage, pacman, etc.) for osx. http://www.macports.org/ , download it again: click and play.
To use MacPorts, you first need tools like make and gcc / g ++. They are included in the xcode package (which is located in the Apple store). Of course, these tools are just as important as the processor for the developer. You would like them first.
After installing xcode, make / g ++ / gcc are on your system, but they are not in your path. Commands will not exist in the terminal. To fix this, open xcode ide (if I am allowed to call it an idea, me?). Then go to Xcode (left screen on the left) → Settings → Downloads. There you can install "Command Line Tools", do it.
Then make should be there. Use the terminal to check. Just by typing make, you may be able to tell what you are doing: * There are no set goals and no makefile was found. Stop. 'But no team was found.
Then, to install opencv, I installed MacPorts, type 'sudo port install opencv', wait a while, and if all goes well, you should have opencv. It is installed in / opt / local. Therefore, you may need to add them to your .pro file:
CONFIG += MYHOTOSXMACHINE MYHOTOSXMACHINE { INCLUDEPATH += /opt/local/include/ LIBS += -L/opt/local/lib/ }
So you go. Good luck
PS: I'm not new to all linux / gnu / posix work, but I'm new to osx. Therefore, if there is a cleaner way to do this, feel free to comment.