title: Visual Studio 2013 and Qt5: QTDIR set too late
body: <p>Everything works with Qt in MSVC2013, except one thing: the DLLs are not found, because $(QTDIR) is not defined, when the local debugging environment is set.</p>
  
  <p>My debugging environment settings:</p>
  
  <pre><code>PATH=$(QTDIR)\bin%3b$(PATH)
  </code></pre>
  
  <p>My .user file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
    &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"&gt;
      &lt;LocalDebuggerEnvironment&gt;PATH=$(QTDIR)\bin%3b$(PATH)&lt;/LocalDebuggerEnvironment&gt;
      &lt;QTDIR&gt;C:\Qt\Qt5.4.1\5.4\msvc2013&lt;/QTDIR&gt;
      &lt;DebuggerFlavor&gt;WindowsLocalDebugger&lt;/DebuggerFlavor&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"&gt;
      &lt;LocalDebuggerEnvironment&gt;PATH="$(QTDIR)\bin%3b$(PATH)&lt;/LocalDebuggerEnvironment&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"&gt;
      &lt;LocalDebuggerEnvironment&gt;PATH=$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(PATH)&lt;/LocalDebuggerEnvironment&gt;
      &lt;QTDIR&gt;C:\Qt\Qt5.4.1\5.4\msvc2013&lt;/QTDIR&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"&gt;
      &lt;LocalDebuggerEnvironment&gt;PATH="$(QTDIR)\bin%3b$(PATH)&lt;/LocalDebuggerEnvironment&gt;
    &lt;/PropertyGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>I don't know why, but the $(QTDIR) variable is not available to LocalDebuggerEnvironment. </p>
  
  <p>It works with following debugging environment settings:</p>
  
  <pre><code>PATH=C:\Qt\Qt5.4.1\5.4\msvc2013\bin%3b$(PATH)
  </code></pre>
  
  <p>Is it possible to make Visual Studio handle this properly or do I have to enter the path manually?</p>