I currently have a QSqlTableModel and a QTableView. One of the column's data represents US Dollar amounts. I would like to format it in US style: $n,nnn.nn and have it editable. It's confusing to me what I need to do to implement this; my best guess is a custom delegate (??). Since this kind of formatting must be very common, someone must have already created a delegate to do this - possibly by passing a formatting string to the delegate. Does anyone know if such a thing exists? If not, please point me in the direction to proceed.

Thanks!