PDA

View Full Version : " #define " Where can i find words?



remnant24c@nate.com
8th April 2009, 01:46
Hello,

I uses Qt3.3.3 Qt designer in Linux.

I wrote code "#define NUM 10" in *.ui file.

I thought "where is it?" so I had found codes in folder ".moc , .ui " at ".cpp, .h" .

However I can't . Where can i see codes "#define"?


thanks.

john_god
8th April 2009, 03:56
You should not write code in a *.ui file because they are used by the Qt designer, write your code in a *.ccp or .h file

ComaWhite
8th April 2009, 04:17
And don't write them in the ui_* files either, they will be regenerated by moc. And don't use defines like that, use const int NUM = 10;