title: QThread error , was not defined in this scope
body: <p>I was hoping to get some help figuring out where I went wrong on my code for a QThread. This is the first time doing threading and have been reading and watching tutorials, but am still hvaing a hard time. Herr is my code</p>
  
  <p>currentTimeThread.h (my thread)</p>
  
  <pre><code>#ifndef CURRENTTIMETHREAD_H
  #define CURRENTTIMETHREAD_H
  #include &lt;QtCore&gt;
  
  class currentTimeThread :public QThread
  {
  public:
      currentTimeThread();
      void run();
  };
  
  #endif // CURRENTTIMETHREAD_H
  </code></pre>
  
  <p>currentTimeThread.cpp</p>
  
  <pre><code>#include "currenttimethread.h"
  #include &lt;QtCore&gt;
  #include &lt;QDebug&gt;
  #include "noheatmode.h"
  
  currentTimeThread::currentTimeThread()
  {
  }
  
  void currentTimeThread::run()
  {
   QTime time = QTime::currentTime();
   QString sTime = time.toString("hh:mm:ss:ms");
   noheatmode::ui-&gt;tempTimeNoHeatMode-&gt;append(sTime);
  } 
  </code></pre>
  
  <p>and my noHeatMode.cpp when the thread is called/started</p>
  
  <pre><code>#include "noheatmode.h"
  #include "ui_noheatmode.h"
  #include "wiringPi.h"
  #include "currenttimethread.h"
  #include &lt;QTime&gt;
  #include &lt;QTextEdit&gt;
  #include &lt;QTimer&gt;
  #include &lt;QString&gt;
  
  
  
  noheatmode::noheatmode(QWidget *parent) :
  QWidget(parent),
  ui(new Ui::noheatmode)
  {
      ui-&gt;setupUi(this);
  
  
  }
  
  noheatmode::~noheatmode()
  {
     delete ui;
  }
  
  
   while(flowTime &gt; 0)
  
        currentTimeThread timeThread;
        timeThread.start();
  
  
        {// set second pin LED to flash according to dutyCycle
         digitalWrite(2,1);
         delay(onTime);
         digitalWrite(2,0);
         delay(offTime);
  
        //set zero pin to be high while flowtime is more than 0
        digitalWrite(0,1);
  
        flowTime--;
        }
  </code></pre>
  
  <p>The issues it, I am getting an error that the timeThread of </p>
  
  <pre><code>currentTimeThread timeThread
  </code></pre>
  
  <p>is not declared. What is the issue? </p>