title: Visual Studio: C++ newline constant error
body: <p>Using Visual Studio on a Qt project (with the Qt addon), seems to always throw up an error message:</p>
  
  <pre><code>error C2001: newline in constant
  </code></pre>
  
  <p>From the following line:</p>
  
  <pre><code>this-&gt;setApplicationVersion(QString(BUILD_VERSION));
  </code></pre>
  
  <p>or whenever I use a compiler constant defined in my QMake file. BUILD_VERSION is defined in my QMake build recipe, compiling the project works successfully if I use a different IDE (even when I use the same MSVC compiler, everything works).</p>
  
  <p>I imagine I'm either missing a preference in the Qt addon or inside Visual Studio, or I need to redefine my constant's outside of my QMake files etc...</p>
  
  <p>The constant is defined and picked up by Intellisense as:</p>
  
  <pre><code>#define BUILD_VERSION \"0.1.0\"
  </code></pre>
  
  <p>Found the issue is down to escaping the quotes in the constant, in Visual Studio this won't work but it will work with Mingw, and the MSVC compiler on the command line. Defining constants without the escaping works with Visual Studio:</p>
  
  <pre><code>#define BUILD_VERSION "0.1.0"
  </code></pre>
  
  <p>The problem is to define the constants in the QMake file, I need to escape like:</p>
  
  <pre><code>#define BUILD_VERSION \\\"0.1.0\\\"
  </code></pre>
  
  <p>Is there a way to define them in the QMake file and keep them working with Visual Studio?</p>