Hi,

I'm new to Qt and its qmake functions. I have read through the Qt Assistant but I do not comprehend everything yet.

May I know how can we add custom DEFINES & CONFIG in the *.pro and *.pri files?

E.g.

Qt Code:
  1. win32 {
  2. }
  3. macx {
  4. }
To copy to clipboard, switch view to plain text mode 

If I need a class in Windows only, can I do a *pro file as below? However, it is not working as I expected.

Qt Code:
  1. win32:DEFINES += WIN32_MYCLASS //(but not working also in qmake)
  2. win32:CONFIG += win32_myclass //(but not working in *.cpp during #ifdef #endif)
To copy to clipboard, switch view to plain text mode 

Please advice. Thanks in advance.