title: no matching function to call to
body: <p>I'm calling this from my designing class and adding them later to the layout but I always get error messages with the function <code>ladeBild(QLabel l, QString s)</code></p>
  
  <pre><code>    void Levels::erzeugen(Levels *)
  {
  ....
  
      ladeBild(l01,"l01.png");
      ladeBild(l02,"l02.png");
      ladeBild(l03,"l03.png");
      ladeBild(l04,"l04.png");
      ladeBild(l05,"l05.png");
      ladeBild(l06,"l06.png");
      ladeBild(l07,"l07.png");
      ladeBild(l08,"l08.png");
      ladeBild(l09,"l09.png");
      ladeBild(l10,"l10.png");
      ladeBild(l11,"l11.png");
      ladeBild(l12,"l12.png");
  ...
  }
  
      void Levels::ladeBild(QLabel l,QString s)
  {
  
      l = new QLabel();
      l.setBackgroundRole(QPalette::Dark);
      l.setAutoFillBackground(true);
      image = new QImage(s);//Muss im debug-Ordner sein!!!
      l.setPixmap(QPixmap::fromImage(*image));
      l.setMaximumHeight(image-&gt;height());
      l.setMaximumWidth(image-&gt;width());
  
  }
  </code></pre>
  
  <p>And I get the following error message (for each call to <code>ladeBild</code>)</p>
  
  <blockquote>
  <pre><code>In member function 'void Levels::erzeugen(Levels*)': Fehler:no
  matching function for call to 'Levels::ladeBild(QLabel*&amp;, const char
  [8])' candidates are: void Levels::ladeBild(QLabel, QString) Fehler:no
  match for 'operator=' in 'l = (QFlags&lt;Qt::WindowType&gt;(0u), (operator
  new(20u), (&lt;statement&gt;, ((QLabel*)&lt;anonymous&gt;))))' candidates are:
  QLabel&amp; QLabel::operator=(const QLabel&amp;)`
  </code></pre>
  </blockquote>
  
  <p>Can't fix this problem ...</p>