I have a combobox with several predefined values and a one custom item that allows manually enter the value in the edit field of the combobox. When user enters/edits the value, I'd like to show that value as is. But when editing is finished to display the decorated value (e.g. "123 Kb" instead of "123" entered by a user). What is the best way to achieve this? I've tried to use QStyledItemDelegate overriding displayText method, but this doesn't seem to work, because the item in the drop down list should be still called "custom", only edit field value should be decorated.
Bookmarks