I have a grid that inherits a QTableView with my custom view model. I also created delegates to edit items in a table cell. they all work fine (at least as per my requirement).
but my problem is when the user clicks inside the cell, and if the delegate is asked to say QTextEdit (which can handle richtext) for this element, and the user inserts some text (which is copied from MSWORD with style information with text) in the text box. at the moment it shows the text correctly (means bold, italics, font size, etc.) as long as the delegate exists, but after updating the data for the model and viewing the updated view does not display style information. it shows plain HTML text (if I install model data when the dataChanged delegate slot is called and I get html from the delegate).
I want the default view of tableview to process HTML and display text according to my style.
Does anyone know how to handle this? Thank you in advance! I am using QT Version 4.1.4 (I know its old, but its project requires)
source share