Hello.

I have a small problem with QT Creator. Program will be run on Windows and Linux platform. I don't have problems on Linux but I have some on Windows. All the platform dependent parts of program I would put in #define test:
Qt Code:
  1. #ifdef unix
  2. #include "*****.h"
  3. #endif
  4. #ifdef win32
  5. #warning "Macro defined win32"
  6. #include "******.h"
  7. #else
  8. #warning "Macro not defined win32"
  9. #endif
To copy to clipboard, switch view to plain text mode 

I found in doc.
For projects that need to be built differently on each target platform, with many subdirectories, you can run qmake with each of the following options to set the corresponding platform-specific variable in each project file:
-unix
qmake will run in unix mode. In this mode, Unix file naming and path conventions will be used, additionally testing for unix (as a scope) will succeed. This is the default mode on all Unices.
-macx
qmake will run in Mac OS X mode. In this mode, Unix file naming and path conventions will be used, additionally testing for macx (as a scope) will succeed. This is the default mode on Mac OS X.
-win32
qmake will run in win32 mode. In this mode, Windows file naming and path conventions will be used, additionally testing for win32 (as a scope) will succeed. This is the default mode on Windows.
I don't have any idea why is not working on Windows.