title: Qt: having problems responding on QWebView::linkClicked(QUrl) - slot signal issue
body: <p>I am pretty new with Qt.</p>
  
  <p>I want to respond to <code>linkClicked</code> in <code>QWebView</code>.</p>
  
  <p>I tried connect like this: </p>
  
  <pre><code>QObject::connect(ui-&gt;webView, SIGNAL(linkClicked(QUrl)),
                   MainWindow,SLOT(linkClicked(QUrl)));
  </code></pre>
  
  <p>But I was getting error: <code>C:/Documents and Settings/irfan/My Documents/browser1/mainwindow.cpp:9: error: expected primary-expression before ',' token</code></p>
  
  <p>When I do this using UI Editing Signals Slots: </p>
  
  <p>I have in header file declaration of slot: </p>
  
  <pre><code>void linkClicked(QUrl &amp;url);
  </code></pre>
  
  <p>in source cpp file :</p>
  
  <pre><code>void MainWindow::linkClicked(QUrl &amp;url)
  {
     QMessageBox b;
     b.setText(url-&gt;toString());
     b.exec();
  }
  </code></pre>
  
  <p>When I run this it compiles and runs but got a warning : </p>
  
  <pre><code>Object::connect: No such slot MainWindow::linkClicked(QUrl) 
    in ui_mainwindow.h:100
  </code></pre>
  
  <p>What is proper way of doing this event handling?</p>