- 
    
Bug
 - 
    Resolution: Done
 - 
    
P2: Important
 - 
    5.0.0
 - 
    None
 
It is not possible to refer to item id nor a property from inside TextItem.cursorDelegate:
    property color cursorColor: "blue"
...
        TextInput {
            id: textInput
            anchors.fill: parent
            cursorDelegate: Cursor { editor: textInput; color: cursorColor }
        }
When trying to do so you'll get errors like:
ReferenceError: Can't find variable: textInput
ReferenceError: Can't find variable: cursorColor
Similar code works for TextEdit, however.
Full example attached.
| For Gerrit Dashboard: QTBUG-21780 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 5837,4 | Provide a context when constructing a TextInput cursor delegate. | master | qt/qtdeclarative | Status: MERGED | +2 | 0 |