Hi All,

I have a TreeView as shown here

Qt Code:
  1. TreeView {
  2.  
  3. id:treeView
  4. anchors.fill: parent
  5. model: treemodel
  6.  
  7. TableViewColumn {
  8. title: "Name"
  9. role: "name"
  10.  
  11. delegate: EditableDelegate{
  12. MouseArea {
  13. id: columnMouseArea
  14. anchors.fill: parent
  15. acceptedButtons: Qt.RightButton
  16. propagateComposedEvents: true
  17. onClicked: {
  18. console.log("Test")
  19. }
  20. }
  21. }
  22. }
  23. }
To copy to clipboard, switch view to plain text mode 

The EditableDelegate is defined in a different file

Qt Code:
  1. Item{
  2. Text {
  3. id: label
  4. text: model.name
  5. color: "blue"
  6. font.family: "Open Sans"
  7. verticalAlignment: Text.AlignVCenter
  8. anchors.leftMargin: 5
  9. elide: "ElideRight"
  10. anchors.verticalCenter: parent.verticalCenter
  11. width: parent.width
  12. }
  13. }
To copy to clipboard, switch view to plain text mode 

However, I get the following error "Cannot assign to non-existent default property" at the treeview where the Mouse area is defined

I need the following design as I want to reuse the delegate with another treeview
Could you suggest a workaround for this approach?