title: Can't connect signal to slot of own class
body: <p>I need to use a QGraphcisTextItem that can contain links so I've created my own class based on this. Here is the header:</p>
  
  <pre><code>class ClickableGraphicsTextItem : public QGraphicsTextItem
  {
  public:
      ClickableGraphicsTextItem();
      void setHtml(const QString &amp;html);
  
  public slots:
      void linkClicked(QString link);
  
  protected:
      void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
  
  };
  </code></pre>
  
  <p>And the CPP</p>
  
  <pre><code>ClickableGraphicsTextItem::ClickableGraphicsTextItem()
  {
      connect(this,SIGNAL(linkActivated(QString)),this,SLOT(linkClicked(QString)));
  }
  
  void ClickableGraphicsTextItem::setHtml(const QString &amp;html){
      QGraphicsTextItem::setHtml(html);
      qWarning() &lt;&lt; "HTML Was set";
  }
  
  void ClickableGraphicsTextItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event){
      qWarning() &lt;&lt; "I was double cliked";
  }
  
  void ClickableGraphicsTextItem::linkClicked(QString link){
      qWarning() &lt;&lt; "Link" &lt;&lt; link &lt;&lt; "was clicked";
  }
  </code></pre>
  
  <p>Now when I run the program I get this message error in the output console:</p>
  
  <pre><code>QObject::connect: No such slot QGraphicsTextItem::linkClicked(QString)
  </code></pre>
  
  <p>Now what I don't understand is why it is attempting to connect to QGraphicsTextItem insted of my ClickableGrapchicsTextItem.</p>
  
  <p>How do I solve this?</p>