No Qt-Toolbar shown using C++ + VS2010 Ultimate + OpenCV 2.3.1 + Qt, only standard OpenCV-window w/o functionality, looking for zooming
<p>I do not get the clue to the following maybe simple thing: I need to use for a bigger project <strong>C++ + VS2010 Ultimate + OpenCV 2.3.1 + Qt 4.8.2 for simply displaying FULL-HD-images but I do not get the Qt-toolbar displayed in my OpenCV-windows (I'd need especially zooming).</strong></p>

<p>Until now I've used C++ + VS2010 Ult. + OpenCV 2.3.1 and wanted to include the Qt-toolbar as it is shown here: <a href="http://opencv.itseez.com/modules/highgui/doc/qt_new_functions.html#setwindowproperty" rel="nofollow">http://opencv.itseez.com/modules/highgui/doc/qt_new_functions.html#setwindowproperty</a></p>

<p>To build Qt, I followed the last steps 5.f and 6 of the official OpenCV install instruction (I used the .zip, no errors during builds): <a href="http://opencv.itseez.com/doc/tutorials/introduction/windows_install/windows_install.html#cpptutwindowsmakeown" rel="nofollow">http://opencv.itseez.com/doc/tutorials/introduction/windows_install/windows_install.html#cpptutwindowsmakeown</a></p>

<p>I could run the sample contours.exe from "...\OpenCV-2.3.1\build\bin\Release" (also in .\Debug) as proposed in the installation instruction and it showed the windows with the toolbars. </p>

<p>So I tried this small program.. but no toolbar is shown, only the standard opencv-window that has no additional functionality, in my case: I need especially zooming :( :</p>

<pre><code>#include "stdafx.h"
#include &lt;cv.h&gt;
#include &lt;highgui.h&gt;
#include &lt;QtGui&gt;

int _tmain(int argc, _TCHAR* argv[])
{
    cv::Mat img = cv::imread("C:\\ProcessingData\\InputCalib\\00000470_01_test.png", CV_LOAD_IMAGE_GRAYSCALE);
    cv::namedWindow("img", CV_WINDOW_NORMAL | CV_WINDOW_KEEPRATIO | CV_GUI_EXPANDED);
    cv::imshow("img", img);
    cv::waitKey(0);
    return EXIT_SUCCESS;
}
</code></pre>

<p>I tried it with and without #include &lt; QtGui >. The PATH variables are all set correctly. No errors are shown. tbb- and OpenCV-dlls are in my project's Debug-directory. </p>

<p>I've used my working lib-dependencies, lib- and include paths and included in the VS2010 property page:</p>

<ul>
<li><p>under "<em>Linker >> General >> Additional Library Directories</em>":
C:\Programming\libraries\OpenCV-2.3.1\build\x86\vc10\lib;C:\Programming\libraries\Qt_4_8_2\lib;</p></li>
<li><p>under "<em>C/C++ >> General >> Additional Include Directories</em>"
a) C:\Programming\libraries\Qt_4_8_2\include
b) C:\Programming\libraries\Qt_4_8_2\include\QtGui</p></li>
</ul>

<p>.... I'd need the toolbar to be displayed or another zooming functionality (please no self-made opencv-trackbar-solution). Anyone knows the problem and/or has a solution?</p>

<p>Thanks a lot, </p>

<p>Rob</p>
