title: Displaying Integers on QLabels?
body: <p>Basically i'm making a simple calculator program to understand the basics of C++ GUI however I get an error message leading to the line of code I have in the <code>void MainWindow::addx()</code> to <code>label -&gt; setText(c);</code> with an error message of:</p>
  
  <pre><code>invalid user-defined conversion from 'int' to 'const QString&amp;'[-fpermissive]
  </code></pre>
  
  <p>I really don't know what that error message means I assume it means I cant display an integer on a label. I just wanted to know if I am able to display an integer on my label or do I have to use a different widget.   </p>
  
  <pre><code>class MainWindow() {
     int a, b, c;
     QLabel * label;
     ...
  };
  
  void MainWindow::addx()
      c = a + b;
      label -&gt; setText(c);
  }
  </code></pre>