Qt Creator UI header file location
-
I am building my Qt app with Qt Creator 2.0.1, on Windows 7 (from the SDK), using the mingw32 tools. My source code and .pro file all reside in foo\GUI, and I am doing a Shadow build in foo\build. It is annoying that when I make changes to a form the revised UI header is created in the build directory, and is not found by the compiler, which is looking for it in the source directory. I can copy the header file across manually, of course, but I'm sure there must be a way to have the file created in the same directory as all the other source files. Can someone throw some light on this?
-
Take a look at how you include the ui_<filename>.h files in your headers. It's probably looking for them in current dir. Add foo/build to qmake's includepath, maybe? Never had that problem myself, to be honest.