Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74336

QML RichText bgcolor useless in td and tr elements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.0
    • Quick: Other
    • None

      In a QML Text object using RichText format, you can color an entire table with either a "bgcolor" attribute or a "background-color" style. The "bgcolor" property also works on "tr" and "td" elements, but "background-color" doesn't, which should probably be fixed. However, the real bug is that when you use "bgcolor" on a "tr" or "td", all that gets colored is the background of the actual text, not the entire row or cell. This makes the feature useless.

      In the attached example (which also shows two other reported bugs), I've colored one <tr> and several <td> tags in the second table. You can see that the cells are not filled with color the way they should be.

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            w00t Robin Burchell
            pderocco Paul DeRocco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes