[SOLVED]QString passed to QStandardItemModel then to QTableView doesn't retain html formatting. Solutions?



  • So I have strings which hold data from a database. I need to compare them and html format them. I bold-ed one of them and put him on a message box, it retains the bold format but when I put him in the table it shows all of it (<b>stringblabla</b>).
    What must I do in order for the string to retain the format?

    EDIT: Found the solution myself. I must create a delegate and do there what I want, even show pictures but I found a much simpler solution: I only have about 10 strings so I'll use labels, much simpler.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.