Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]QString passed to QStandardItemModel then to QTableView doesn't retain html formatting. Solutions?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 684 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ogrishmania
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved