title: How to bind property to hashmap
body: <p>The following code prints <code>undefined</code>:</p>
  
  <pre><code>import QtQuick 2.6
  import QtQuick.Window 2.2
  
  Window {
      visible: true
      width: 640
      height: 480
  
      property var prop: {
          foo: 1
          bar: 2
      }
  
      Component.onCompleted: {
          console.log(prop.foo);
      }
  }
  </code></pre>
  
  <p>I guess the body of <code>prop</code> is interpreted as a JS code block, and <code>foo</code> and <code>bar</code> are interpreted as code labels.</p>
  
  <p>I seem to remember that the Qt docs mention a gotcha: having to use double braces in such cases or something like that. But I can't find it right now.</p>
  
  <p>What is the correct syntax for this?</p>