You will need a property that holds the actual text and use that as the input for your elide calculation.
You can probably use the elidedText as the input for the TextEdit though.
Something like
TextEdit {
id: delegateTextEdit
property string fullText: model.text
text: deletateTextEditMetrics.elidedText
TextMetrics {
id: delegateTextEditMetrics
text: delegateTextEdit.fullText
elideWidth: delegateTextEdit.width - 10
}
}
TextEdit {
id: delegateTextEdit
property string fullText: model.text
text: deletateTextEditMetrics.elidedText
TextMetrics {
id: delegateTextEditMetrics
text: delegateTextEdit.fullText
elideWidth: delegateTextEdit.width - 10
}
}
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks