title: How to make a cell editable in qt tableview
body: <p>I try to make a cell editable using a tableview in qt. I have found a few examples and came up with the following:</p>
  <pre><code>TableView {
      id: tableView
      objectName: &quot;tableView&quot;
      horizontalScrollBarPolicy: -1
      selectionMode: SelectionMode.SingleSelection
  
      Layout.minimumWidth: 300
      Layout.fillHeight: true
      Layout.fillWidth: true
  
      model: trackableInfoModel
  
      itemDelegate: Rectangle {
          Text {
              anchors.verticalCenter: parent.verticalCenter
              text: styleData.value
          }
          MouseArea {
              id: cellMouseArea
              anchors.fill: parent
              onClicked: {
                  if(styleData.column === 2){
                        //do something
                  }
              }
          }
      }
  </code></pre>
  <p>From what I found it looks like I need an itemDelegate to paint each cell. Then I add a MouseArea to the cell and check which cell was selected. In my case I only need to react on the cells in column 2.</p>
  <p>The thing is when I use the code shown above I get the error that:</p>
  <blockquote>
  <p>JavaScipt blocks are not supported in a QT Quick UI form. (M223)</p>
  </blockquote>
  <p>Because of that I tried to register a property alias for cellMouseArea like this:</p>
  <blockquote>
  <p>property alias cellMouseArea : cellMouseArea</p>
  </blockquote>
  <p>However that leads to this error:</p>
  <blockquote>
  <p>qrc:/EditPageForm.ui.qml:24 Invalid alias reference. Unable to find id &quot;cellMouseArea&quot;</p>
  </blockquote>