2

I am making a project in QT Creator 2.6. I am promoting a QWidget subclass called cPlotter, but when I try to compile the project, it fails because it cannot find the file cplotter.h. I figured out that this is because the file “ui_mainwindow.h” updates automatically including the file cplotter.h within brackets instead of quotes.

So, ui_mainwindow.h updates like:

#include < cplotter.h >

but it should be:

 #include “cplotter.h”

So, it is very annoying to edit by hand every time I change something on the GUI.

Anyone knows a solution for this?

Bart
  • 19,692
  • 7
  • 68
  • 77
fzec
  • 81
  • 2
  • 3

1 Answers1

0

INCLUDEPATH += $$PWD (or where cplotter.h)

annon
  • 1