Hi,
I have a small class derived from QPushButton for the cases whenever I need a file loader button, and I use my class with the promotion technique. I work on XP, and I use the Qt Creator. Whenever I change something in the after I try to build the project I get the error message:
buttonfledialog.h: No such file or directory.
This appears in the generated ui header at the line where it tries to include my buttonfiledialog.h like this:
#include <buttonfiledialog.h>
which of course causes the error message.
The problem can be solved with changing this line to
#include "mypath/buttonfiledialog.h"
but in this case I will have the very same problem whenever I change something in the user interface because the ui header will be every time regenerated with the wrong include line.
Now I would like to ask if there is a way to avoid this mess, so how can I "teach" the creator (or the system itself, like adding a line into the pro file) to use the proper path?
Bookmarks