title: HowTo flick a QML ListView horizontal and vertical
body: <p>I want to display a big list on a small display. The problem with the ListView is, that I have to setup a orientation, whether it is flickable horizontal or vertical.</p>
  
  <p>What I tried is:</p>
  
  <ol>
  <li>I inserted the ListView in a Flickable, and setup the Flickable for horizontal scroll and the view for vertical scroll, but then I can't flick to both sides at the same time</li>
  <li>I tried to set the flickableDirection property of the ListView to Flickable.HorizontalAndVerticalFlick, but this didn't work.</li>
  </ol>
  
  <p>Heres a simple example:</p>
  
  <pre><code>import QtQuick 2.2
  import QtQuick.Window 2.1
  
  Window {
      visible: true
      width: 360
      height: 360
  
      ListModel {
          id: fruitModel
  
          ListElement {
              name: "Apple"
              cost: 2.45
          }
          ListElement {
              name: "Orange"
              cost: 3.25
          }
          ListElement {
              name: "Banana"
              cost: 1.95
          }
      }
  
      ListView {
          anchors.fill: parent
  
          model: fruitModel
  
          delegate: Rectangle {
              id: delegateRect
              height: 150
              width: 545
  
              border.color: "steelblue"
              border.width: 1
  
              Row {
                  Text {
                      id: nameLabel
                      width: 345
                      text: name
                  }
  
                  Text {
                      id: costLabel
                      width: 200
                      text: cost
                  }
              }
          }
      }
  }
  </code></pre>