Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

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

$
0
0
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.

Viewing all articles
Browse latest Browse all 18427

Trending Articles