View Full Version : where should i put #define in QtDesigner?

16th October 2006, 15:32
a self-explanatory question
I tried typing some #defines under 'forward declarations' but it didn't work.
any ideas?

16th October 2006, 15:52
You can place it in an .ui.h file if you use one. If not, put it into a separate header file and include the file into the proper class header using Designer. Or you can do it the "proper" way - subclass the class created by Designer+uic and put your define statement in the subclass.