title: createButton OpenCV new Qt functionality
body: <p>When I try to compile this it gives me an</p>
  
  <blockquote>
    <p>Unhandled exception at 0x75B0C42D in Example7.exe: Microsoft C++ exception: cv::Exception at memory location 0x0016F9EC.</p>
  </blockquote>
  
  <p>I don't know what else to try. I've tried it so many different ways and looked all around and I don't seem to find anything that works for me.</p>
  
  <p>I'm running OpenCV 2.4.11 Visual Studio 2013 all in x84 libraries windows 7 x64.</p>
  
  <pre><code>#include &lt;opencv2/core/core.hpp&gt;
  #include &lt;opencv2/highgui/highgui.hpp&gt;
  #include &lt;iostream&gt;
  
  using namespace cv;
  using namespace std;
  
  int state;
  
  void callbackButton2(int state, void* userdata)
    {
       cout &lt;&lt; "Could not open or find the image" &lt;&lt; std::endl;
    }
  
  int main()
   {
     Mat image;
      image =        imread("C:/Users/anjamaco/Documents/OPENCV/CODE/1/Example1/Capture2.PNG",1);   // Read the fi
  
  if (!image.data)                              // Check for invalid input
  {
      cout &lt;&lt; "Could not open or find the image" &lt;&lt; std::endl;
      return -1;
  }
  
  namedWindow("Display window", WINDOW_AUTOSIZE);// Create a window for display.
  namedWindow("Control Panel", CV_WINDOW_AUTOSIZE | CV_GUI_NORMAL);
  
  createButton("Dummy button", callbackButton2, NULL, CV_PUSH_BUTTON, 1);
  
  
  imshow("Display window", image);                   // Show our image inside it.
  
  waitKey(0);                                          // Wait for a keystroke in the window
  return 0;
   }
  </code></pre>
  
  <p>Could someone please give me an example on how to implement a button that shows text on the console?</p>