title: Qt Optional Argument has no matching function call
body: <p>I'm getting a compile error when trying to use a method defined as having and option argument. The error message is this: </p>
  
  <blockquote>
    <p>error: no matching function for call to 'ConsoleWidget::logInfo(const
    char [32])'consoleWidget->logInfo("This is logging an info message");</p>
  </blockquote>
  
  <p>Below are my files.</p>
  
  <p><strong>(header) .h</strong></p>
  
  <pre><code>#ifndef CONSOLEWIDGET_H
  #define CONSOLEWIDGET_H
  
  #include &lt;QTextEdit&gt;
  #include &lt;QAction&gt;
  #include &lt;QColor&gt;
  
  class ConsoleWidget : public QTextEdit
  {
      Q_OBJECT
  public:
      explicit ConsoleWidget(QWidget *parent = nullptr);
  
  public slots:
      void logInfo(const QString&amp; text, const bool includeTimestamp /*=false*/);
  };
  
  #endif // CONSOLEWIDGET_H
  </code></pre>
  
  <p><strong>cpp (.cpp)</strong></p>
  
  <pre><code>void ConsoleWidget::logInfo(const QString &amp;text, bool includeTimestamp = false)
  {
      ...
  }
  </code></pre>
  
  <p><strong>(main) .cpp</strong></p>
  
  <pre><code>auto *consoleWidget = new ConsoleWidget(this);
  consoleWidget-&gt;logInfo("This is logging a message!");
  </code></pre>