PDA

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



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

wysota
16th October 2006, 16: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.