title: QT Creator C++ not generating ui_.h file for one item
body: <p>I've been working on my UI, and all that stuff compiles fine but I also wrote up the majority of my code then generated the header file for it part way through. But this header file will not compile - no errors. It just isn't in the build directory at all.</p>
  
  <p>ink.h</p>
  
  <pre><code>#ifndef INK_H
  #define INK_H
  
  #include &lt;QPaintDevice&gt;
  
  namespace Ui {
  class Ink;
  }
  
  class Ink : public QPaintDevice
  {
  
  public:
      explicit Ink(QWidget *parent = 0);
      ~Ink();
  
  private:
      Ui::Ink *ui;
  };
  
  #endif // INK_H
  </code></pre>
  
  <p>ink.cpp</p>
  
  <pre><code>#include "ink.h"
  
  #include &lt;QtCore&gt;
  #include &lt;QtGui&gt;
  #include &lt;QWidget&gt;
  #include &lt;QPainter&gt;
  #include &lt;QPaintEvent&gt;
  
  void ink()
  {
  
  
      QFile *brushInput; //takes raw 8 bit grayscale image, 8 bit values only
      char *brushProto;
      uchar *brushData;
  
  
      brushInput = new QFile("x:\\Development\\InkPuppet\\brush.raw"); //open the raw file
      brushInput-&gt;open(QIODevice::ReadOnly);
      QDataStream in;
      in.setDevice(brushInput);
      int size = brushInput-&gt;size(); //set size to length of raw file
  
      brushProto = new char[size];
      in.readRawData(brushProto, size); //read file into prototype
      brushData = new uchar[size];
  
      for(int i = 0; i &lt; size; ++i)
      {
          brushData[i] = (uchar)brushProto[i]; //copy char to uchar array
      }
  
      QImage test(brushData, 128, 128, QImage::Format_Indexed8);
      QImage test2(128, 128, QImage::Format_ARGB32);
  
      QVector&lt;QRgb&gt; vectorColors(256); //create color table
      for(int c = 0; c &lt; 256; c++)
      {
          vectorColors[c] = qRgb(c, c, c);
      }
  
      test.setColorTable(vectorColors);
  
      for(int iX = 0; iX &lt; 100; ++iX)
      {
          for(int iY = 0; iY &lt; 100; ++iY)
          {
              test2.setPixel(iX, iY, qRgba(255 - (qrand() % 100), 0 + (qrand() % 100), 0 + (qrand() % 100), qAbs((int)test.pixel(iX, iY)-255)));
          }
      }
  
      //final conversion for stencil and color brush
      QPixmap testPixmap = QPixmap::fromImage(test2);
      QPixmap testPixmap2 = QPixmap::fromImage(test);
  
      QPainter painter(this);
  
      painter.drawPixmap(150, 50, 100, 100, testPixmap);
      painter.drawPixmap(50, 50, 100, 100, testPixmap2);
  
      delete[] brushProto;
      delete[] brushData;
      delete brushInput;
  }
  </code></pre>
  
  <p>main.cpp</p>
  
  <pre><code>#include "inkpuppet.h"
  #include "ink.h"
  #include &lt;QApplication&gt;
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      InkPuppet w;
      w.show();
  
      return a.exec();
  }
  </code></pre>